1
我的按钮在Firefox按钮高度
似乎不错,但高度在Chrome扭曲
这里是我的代码
HTML
<input name="Submit" type="image" onclick="return CheckForm1();" class="button submit" />
CSS
.button {
color: #fff;
display: inline-block;
line-height: normal;
margin-bottom: 20px;
text-align:center;
text-decoration: none;
}
.button:hover {
background-color: #fff;
-moz-transition: all 0.2s ease;
-webkit-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.submit {
background-color: #1ea1e3;
border: #1ea1e3 3px solid;
color: #fff;
font-size: 20px;
padding: 10px 0;
width: 300px;
max-width: 100%;
}
.submit:hover {
border: #1ea1e3 3px solid;
color: #1ea1e3;
}
是的,我做了明确的缓存。
测试页面是here。
那么我没有写代码的部分,所以不知道他们为什么使用'type =“image”'。但是,您的解决方案工作。 – JGallardo