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.
我正在编写一个 iphone web 应用程序,我正在尝试通过 css 更改按钮的背景图像。但是,当我单击按钮时,iphone safari 浏览器上的:active事件不起作用。是否有一些css修补程序?谢谢
:active
试试这个,它应该使它工作:<a ontouchstart="">Link</a>. 您还可以将其应用于body元素以一次修复多个按钮。
<a ontouchstart="">Link</a>
body