我在页面上放置了一个输入按钮 (type="button"
):
当我点击它时,周围会出现令人讨厌的焦点矩形框:
如何去除它?
这是我的代码:
/*Buttons/Inputs*/
.runInput {
border-top: 1px solid #ffffff;
background: #001cbd;
background: -webkit-gradient(linear, left top, left bottom, from(#148bfa), to(#001cbd));
background: -webkit-linear-gradient(top, #148bfa, #001cbd);
background: -moz-linear-gradient(top, #148bfa, #001cbd);
padding: 6.5px 13px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
-moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
box-shadow: rgba(0,0,0,1) 0 1px 0;
text-shadow: rgba(0,0,0,.4) 0 1px 0;
color: #ffffff;
font-size: 24px;
font-family: Helvetica, Arial, Sans-Serif;
text-decoration: none;
vertical-align: middle;
}
.runInput:hover {
background: #001cbd;
color: #d9d9d9;
}
.runInput:active {
background: #00046e;
}
.runInput:focus {
outline: 0;
}
<input class="runInput" onclick="runCode();" type="button" value="Run">
outline: none;
添加到我的CSS中,但是它并没有起作用。
感谢您的回答!
编辑:我更改了代码片段。