我不是在CSS很好,文本框已經對準向右,我試圖把搜索圖標到文本框中,它只是不能進去這裏是代碼:文本框與搜索圖標放置
<style type="text/css">
#textbox-search{overflow:auto;}
#textbox-search input.searchkeyword {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border:1px solid #8e8e8e;
background-color:#f5f5f5;
height:16px;
padding:-4px;
padding-left:-48px;
color:#4a4a4a;
float:right;
}
#textbox-search input.button{
border:0;
padding:4px;
margint:0 0 0 600px;
width:24px;
height:24px;
background:transparent url('images/search.png') center center no-repeat;
float:right;
}
</style>
<form id="textbox-search">
<input type="submit" class="button" value="" />
<input type="text" class="searchkeyword" />
</form>
UPDATE:
背景圖像設置的按鈕,是不是? –
是的,所有的設置都正確,默認情況下它是在左邊,一旦我改變它的右邊,它似乎故障= _ = – Furry
有什麼問題? – Neolisk