单击时按钮和链接周围有边框。
我怎样才能删除它?
原文由 Mo. 发布,翻译遵循 CC BY-SA 4.0 许可协议
你可以像这样预设它:
:focus{
outline:0; /*removes the dotted border*/
}
但请记住(出于可访问性原因)将 CSS 文件中的样式“稍后”设置为更明显的样式。例如 :
a:focus, a:active{
color:#ff5500; /*different color than regular*/
}
input[type=submit]:focus, input[type=submit]:active{
background-color:#444; /*different color than regular*/
}
原文由 darma 发布,翻译遵循 CC BY-SA 3.0 许可协议
2 回答909 阅读✓ 已解决
3 回答801 阅读✓ 已解决
4 回答1.2k 阅读✓ 已解决
2 回答1.5k 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
2 回答877 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
这很丑陋,但大多数 IE 修复程序也是如此。