我想知道像 bing.com 或 wolframalpha.com 这样的网站是如何在文本字段内创建搜索按钮的?如果你去每个网站,你可以清楚地看到我的意思。
问问题
9659 次
4 回答
1
简单:提交按钮(具有透明背景)在输入字段上方.. :)
于 2010-04-01T00:55:34.350 回答
1
将自己的 Firebug 作为 Firefox 的插件。您可以单击屏幕上的元素并查看它们的 CSS。它会教你大量关于 CSS 的信息。他们实际上使用负边距让那个傻瓜在 Bing.com 上漂浮。
于 2010-04-01T00:58:43.557 回答
0
根据这个搜索框背景图像的想法进行格式化怎么样?
于 2011-09-28T16:54:55.233 回答
-1
@dscher -
这是代码,它在 Opera 中运行良好,但在其他浏览器中没有。
提交表格 {
background:transparent url(submit.png) no-repeat;
border:0 none;
width:16px;
height:16px;
overflow:hidden;
font-size:0px;
text-decoration:none;
cursor: pointer;
margin-top: 0px;
margin-left: -25px;
margin-right: 0px;
margin-bottom: 0px;
padding-top: 25px;
padding-left: 0px;
padding-right: 0px;
padding-bottom: 0px;
}
于 2010-04-01T19:18:07.983 回答