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.
是否可以影响原生 HTML 的“按下”样式<input type="button">显示为按下状态,以便我可以使用原生样式按钮实现切换按钮?
<input type="button">
不幸的是,您的问题的简单答案是不。
没有办法影响按钮的原生样式以显示为按下状态。