當我在Firefox中打開頁面時,此電子郵件訂閱表單的輸入按鈕與輸入字段正確對齊,但在Chrome中看起來有點偏離。Chrome中的輸入按鈕位置已關閉?
有人能幫我弄清楚如何使它在Chrome中正確排列?非常感謝!
的HTML代碼:
<div id="socialmedia">
<form action="********/account.php" name="digiSHOP" method="post">
<input type="hidden" name="m" value="subscribe" />
<input type="hidden" name="submit" value="true" />
<input type="hidden" name="secret" value="a6887a2c4d7909f10a4e01778cdd4b02" />
<input type="hidden" name="mailingListId" value="1" />
<div class="form-label" >
<div class="nicelabel" >
<img border="0" src="updateme.gif" width="132" height="30"></a>
</div>
<div class="niceform" >
<input align="left" type="text" value=" your email" name="email" style="width:150px; height:24px; maxlength="80" value="" size="20" />
<input class="edit-button" type="submit" value="" />
</div>
</div>
</form>
</div>
CSS樣式:
#socialmedia{
float: left;
width: 350px;
height: auto;
margin-top: 15px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: 0px;
text-align: left;
}
.form-label {
float: left;
width: 400px; height: 28px;
font-size: 1.5em;
margin: 10px 0 0 0;
text-align: left;
}
.nicelabel { float: left; text-align:left; width:132px; }
.niceform { float: left; text-align:right; width:230px; }
input, textarea {margin-left: 0px; }
截圖:
糟糕!謝謝你接受! (只是爲了澄清,原來的錯誤對手頭的問題沒有影響。) – SneakOut