【发布时间】:2018-10-24 18:29:34
【问题描述】:
如何在 Firefox 中在 <button> 或 <input> 上使用 :focus 伪类?!
它适用于除 Firefox 和 Safari 在 MacOS
注意:它适用于 Keyboard[tab] 导航但没有鼠标点击。
button:focus {
border: 2px solid red
}
<button tabindex="1">click</button>
【问题讨论】:
-
在 FF 中很适合我。
-
是的,抱歉我没有提到 MacOS,所以在 MacOS 或 Windows 上与你合作?
-
我在 Windows 上
-
是的,它适用于 Windows 而不是 MacOS :(
标签: css macos firefox safari focus