是;只需将’none’分配给’outline’属性:
input {
outline: none;
}
请考虑大纲是一个UI功能,以突出显示当前活动/聚焦的表单元素,并删除该视觉提示可能会阻碍某些用户.
在以下评论中回应了Beakr,OP的评论左侧:
I was intending to disable it/modify it to see what it could do.
要调整轮廓的样式,您可以访问各个属性:
elementSelector:focus {
outline-width: 4px; /* thin, medium, thick or standard CSS length units */
outline-style: auto; /* or 'inherit', 'none' or border-style (solid, dashed, dotted...) */
outline-color: #f90; /* standard CSS colors */
}
以上也可以使用速记符号浓缩:
elementSelector:focus {
outline: 4px auto #f90;
}
可以使用的最小可能轮廓测量是:
elementSelector:focus {
outline-width: thin; /* or 1px */
}