当我将一个pre元素设置为contenteditable并将焦点放在其中进行编辑时,它周围会出现一个看起来不太好看的虚线边框.当焦点在其他地方时,边界就不存在了
谢谢
当我将一个pre元素设置为contenteditable并将焦点放在其中进行编辑时,它周围会出现一个看起来不太好看的虚线边框.当焦点在其他地方时,边界就不存在了
谢谢
将outline
property设置为0px solid transparent;
.您可能还必须将其设置为:focus
状态,例如:
[contenteditable]:focus {
outline: 0px solid transparent;
}