我曾妄圖對準我的提交按鈕的形式的一個條目。我只是想讓提交按鈕稍微位於表單框的右側和中間位置。目前,它在盒子的右側,但有點到底。中心本着提交按鈕,表格框
我已經嘗試了所有的答案不同的響應,以類似的查詢就對準提交按鈕(浮動,保證金等),但對我的生活我無法找到正確的選擇!
我的HTML看起來像這樣:
<input name="query" id="querybox" style="width:400px;height:40px;font-size:26px;border-radius:15px;border=0;">
</input>
<input type="button" value="Search" id="search" style="width:100px;height=40px;font-size=20px;"/>
的CSS樣式的按鈕看起來是這樣的:
#search {
cursor:pointer;
width:70px;
height: 31px;
line-height:0;
font-size:0;
text-indent:-999px;
color: transparent;
background: url(ico-search.png) no-repeat #151B54 center;
border: 1px solid #FFFFFF;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
}
#submit:hover {
background: url(ico-search.png) no-repeat center #151B54;
border: 1px solid #FFFFFF;
}
任何幫助非常感謝!謝謝。
單擊幫助你接受它 –