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;
}
代码.........? –