我已经应用了以下html
<input type="image" value="Search" class="button" src="" onclick="this.form.searchword.focus();">
这就是CSS ...
#header form .button
{
/*border:solid 1px #999;*/
background:#664335 url(../images/btn-search.jpg) no-repeat ;
/*color:#fff;*/
display: inline-block;
font-size: 0;
width: 16px;
height: 20px;
vertical-align: middle;
background-color: transparent !important;
border: none;
}
我尝试删除宽度和高度并为其设置填充值,但没有成功。当我搜索不同的问题时,我知道如果没有应用 src 属性,那么会出现边框。但在我的情况下,我无法编辑标记,所以有什么方法可以删除该错误。
无论如何,我通过使用 jquery 将类型图像更改为按钮来解决它。