0
我想要實現在搜索框內搜索按鈕,我發現它有用裏面按鈕:Search button inside the search box like Bing搜索在搜索框中
但是當我把代碼放到我的網站,它沒有表現出預期的方式,怎麼了?
這是代碼
HTML
<input type="text" id="q" />
<input type="button" id="b" value="Search" />
CSS
#q, #b {
margin: 0
}
#q {
padding 5px;
font-size: 2em;
line-height: 30px
}
#b {
/* image replacement */
text-indent: -99999px;
width: 30px;
height: 30px;
display: block;
background: gray url(button.png) 0 0 no-repeat;
}
代碼.........? –