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