【发布时间】:2013-11-22 02:28:27
【问题描述】:
当我点击其他地方时,边框消失了,我尝试使用onfocus: none,但这没有帮助。如何让这个丑陋的按钮边框在点击时消失?
input[type=button] {
width: 120px;
height: 60px;
margin-left: 35px;
display: block;
background-color: gray;
color: white;
border: none;
}
<input type="button" value="Example Button">
【问题讨论】:
-
在我的 mozilla 浏览器上看起来不错
-
焦点矩形旨在帮助用户观察点击是有效的,从而防止他意外点击两次。那么你确定你是在解决问题而不是在创造问题吗?