我试图改变提交按钮,但它不能正常工作。CSS Submit Form看起来不像应该
在CSS我有我的按钮,它工作得很好:
.button {
float: left;
clear: both;
display: block;
width: 150px;
padding: 4px 0 5px 0;
text-align: center;
background: url(images/button_01.jpg) no-repeat;
color: #000000;
font-size: 14px;
font-weight: bold;
text-decoration: none;
}
然后我创建提交类型(很明显的代码是一样的):
input[type="submit"]{
float: left;
clear: both;
display: block;
width: 150px;
padding: 4px 0 5px 0;
text-align: center;
background: url(images/button_01.jpg) no-repeat;
color: #000000;
font-size: 14px;
font-weight: bold;
text-decoration: none;
}
现在
如果我创建一个HTML页面:
<div class="button"> <a> Check Availability</a></div>
<input type="submit" value="Send"/>
<input type="submit" value="Submit" class="button" />
<div class="button"> <a> whats up</a></div>
有很大的不同在appeareance。所有按钮必须看起来像第一个按钮和第四个按钮。我不明白为什么提交按钮有这个边框。 下面是截图: Screenshot
Any ideas guys how can i fix it ?
如果你只是想删除边框,那么你可以简单地添加'边框:0;'... – Digzol