How to remove the border highlight on an input text element

前端 未结 18 1237
庸人自扰
庸人自扰 2020-11-22 05:49

When an HTML element is \'focused\' (currently selected/tabbed into), many browsers (at least Safari and Chrome) will put a blue border around it.

For the layout I a

18条回答
  •  萌比男神i
    2020-11-22 06:50

    This is an old thread, but for reference it's important to note that disabling an input element's outline is not recommended as it hinders accessibility.

    The outline property is there for a reason - providing users with a clear indication of keyboard focus. For further reading and additional sources about this subject see http://outlinenone.com/

提交回复
热议问题