浏览器:Opera 12
在浏览器Opera中,如果块包含至少2个输入,其中一个是type =“submit”,则按正常输入字段 - 输入参数type =“submit”将被分配一个黑色边框。 / p>
type =“submit”的输入代码:
<input type="submit" id="SearchBlock_BtnSearch" value="Search" class="mc-button mc-button-orange"/>
样式:
.mc-button {
background: -o-linear-gradient(to bottom, #EEEEEE, #D3D3D3) transparent;
border-bottom: 1px solid #919191;
border-left: 0px solid #919191;
border-radius: 10px;
border-right: 0px solid #919191;
border-top: 0px solid #919191;
clear: none;
color: #676767;
cursor: pointer;
float: left;
font-family: "Myriad Pro", "Arial", "Helvetica", sans-serif;
font-size: 12px;
height: 26px;
letter-spacing: 0.01px;
line-height: 26px;
min-width: 10px;
overflow: visible;
padding: 0px 24px !important;
position: relative;
text-align: center;
text-decoration: none;
text-shadow: 0px 1px #F3F3F3;
text-transform: uppercase;
}
.mc-button-orange {
background: -o-linear-gradient(to bottom, #EEEEEE, #D3D3D3) transparent;
border-bottom: 1px solid #919191;
color: #676767;
position: relative;
text-shadow: 0px 1px #F3F3F3;
}
请告诉我,如何解决问题?
展望未来,按钮有一个边框,因此,如果我们应用边框:无 - 消失,黑色轮廓和按钮的边框
P.S。由谷歌翻译翻译
UPD:
如果在CSS的开头指定问题消失:
noindex:-o-prefocus, input[type="submit"] {
border: none;
}
noindex:-o-prefocus, input[type="submit"]:hover {
border: none;
}
但是,此解决方案完全删除了边框,这是不可取的
答案 0 :(得分:0)
尝试添加:
* {
border: 0px;
}
在css文件的最开头。这会阻止浏览器设置其默认边框