Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击不完全刷新当前页面的链接时,有没有办法摆脱选择矩形?
您是指目标的虚线轮廓吗?
尝试:
:focus { outline: 0; }
这将删除所有焦点轮廓。它本质上与 JavaScript 术语中的 onclick 相同。您可能更愿意将此应用于a:focus.
a:focus
尝试添加这个:
onclick="this.blur()"
这里也讨论过
(CSS?)消除浏览器在超链接图像周围的“选定”行?