如何隐藏选定的链接框
不确定所有浏览器,但我知道在 IE 中,如果您单击链接并按住,该链接周围会出现一个虚线框。有什么办法可以阻止这种情况发生吗?我的网站上很难看。
Not sure about all browsers, but I know in IE if you click on a link and hold, the link gets a dotted box around it. Is there any way to stop that from happening? it's ugly on my site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它实际上是您不应该删除的东西,因为它是一个辅助功能,但如果您必须删除它:
http://haslayout.net/css-tuts/Removing-Dotted-Border-on-Clicked-Links
It's actually something you shouldn't remove as it is a accessibility feature but if you must:
http://haslayout.net/css-tuts/Removing-Dotted-Border-on-Clicked-Links
您看到的边框实际上是 轮廓 (或 CSS2版本)所以设置
outline: none;
在你的 CSS 中。例如: http://jsfiddle.net/ambigously/zLaq5/但是,正如 Stofke 所指出的,您也许应该保留它,因为它是一个辅助功能功能。
That border you're seeing is actually the outline (or the CSS2 version) so set
outline: none;
in your CSS. For example: http://jsfiddle.net/ambiguous/zLaq5/However, as Stofke notes, you should probably just leave it alone as it is an accessibility feature.