Firefox版本19給我提供輸入欄和按鈕之間間距的問題。我希望輸入按鈕出現在表單背景中,並且垂直居中,但Firefox中的按鈕比Chrome或IE9中的大,因此它與表單背景的底部接觸。我在1600x900顯示器上看到了這一點。在Chrome和IE9上看起來很好。這裏是的jsfiddle http://jsfiddle.net/gyFS4/1/Firefox 19中的CSS按鈕大小不同(適用於Chrome和IE9)
HTML
<div id="signUp">
<form action="" method="post" id="signup">
<input type="text" class="left" id="email" name="email" placeholder="Enter your email address" value="">
<input type="submit" id="notify-me" class="button" value="Sign me up!">
</form>
</div>
CSS
form {
width: 406px;
margin: 0px auto;
margin-top: 32px;
background: #ffffff;
height: 46px;
border-radius: 22px;
-moz-box-shadow: 0px 0px 0px 6px rgba(255, 255, 255, 0.4);
-webkit-box-shadow: 0px 0px 0px 6px rgba(255, 255, 255, 0.4);
box-shadow: 0px 0px 0px 6px rgba(255, 255, 255, 0.4);
}
#email {
margin-left: 16px;
margin-right: 16px;
height: 36px;
width: 240px;
font-size: 1em;
color: #202020;
background: transparent;
border: none;
}
#email:focus {
outline: none;
}
.button {
margin-top: 3px;
background-color: #c3d753;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #c3d753), color-stop(100%, #a7ba3f));
background-image: -webkit-linear-gradient(top, #c3d753, #a7ba3f);
background-image: -moz-linear-gradient(top, #c3d753, #a7ba3f);
background-image: -ms-linear-gradient(top, #c3d753, #a7ba3f);
background-image: -o-linear-gradient(top, #c3d753, #a7ba3f);
background-image: linear-gradient(top, #c3d753, #a7ba3f);
-moz-border-radius:20px;
-webkit-border-radius:20px;
border-radius:20px;
border:1px solid #82922d;
display:inline-block;
color:#ffffff;
font-family: Open Sans, sans-serif;
font-size:1em;
font-weight: 400;
padding:8px 16px;
text-decoration:none;
text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5);
}
.button:hover {
background-color: #daf159;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #daf159), color-stop(100%, #a7ba3f));
background-image: -webkit-linear-gradient(top, #daf159, #a7ba3f);
background-image: -moz-linear-gradient(top, #daf159, #a7ba3f);
background-image: -ms-linear-gradient(top, #daf159, #a7ba3f);
background-image: -o-linear-gradient(top, #daf159, #a7ba3f);
background-image: linear-gradient(top, #daf159, #a7ba3f);
}
.button:active {
background-color: #c3d753;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #a7ba3f), color-stop(100%, #c3d753));
background-image: -webkit-linear-gradient(top, #a7ba3f, #c3d753);
background-image: -moz-linear-gradient(top, #a7ba3f, #c3d753);
background-image: -ms-linear-gradient(top, #a7ba3f, #c3d753);
background-image: -o-linear-gradient(top, #a7ba3f, #c3d753);
background-image: linear-gradient(top, #a7ba3f, #c3d753);
-moz-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.7);
-webkit-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.7);
box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.7);
}
的jsfiddle PLZ .... – bobthyasian 2013-02-27 07:13:14
我加了活鏈接,但我會添加的jsfiddle了。 – dannyp32 2013-02-27 07:15:30
我替換了jsfiddle的實時鏈接。這裏是鏈接http://jsfiddle.net/gyFS4/1/ – dannyp32 2013-02-27 07:29:36