我嘗試將提交按鈕與表單的一個條目對齊失敗。 我只是希望提交按鈕稍微定位到窗體框的右側和中心。 現在是右邊,但在盒子的底部。
我試圖回答相似的查詢,對於提交按鈕( 浮點,margin 等等 ),但是我不能找到正確的選擇。
我的HTML如下所示:
用於設置按鈕樣式的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;
}
任何幫助,非常感謝謝謝。