DIV+CSS搜索框
2015-02-18 22:13:19 访问(1757) 赞(0) 踩(0)
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title>
<style type="text/css">
.search_input
{
width: 300px;
height: 34px;
line-height: 34px;
border: 2px solid #d33534;
float: left;
}
.search_but
{
float: right;
height: 34px;
width: 70px;
cursor: pointer;
border: 0px;
background: #d33534;
font-size: 14px;
font-weight: bold;
color: #fff;
margin-right: 0;
}
.search_txt
{
border: 0px;
width: 213px;
height: 30px;
line-height: 30px;
float: left;
_display: inline;
margin-top:1px;
margin-bottom:1px;
margin-left:1px;
margin-right:1px;
}
</style>
</head>
<body>
<div class="search_input">
<input name="kw" id="kw" type="text" class="search_txt" onblur="if(this.value=='') {this.value='按产品名称或店铺名称搜索';this.style.color='#999999';}"
onfocus="if(this.value=='按产品名称或店铺名称搜索') {this.value='';}this.style.color='#333';"
value="按产品名称或店铺名称搜索" style="color: rgb(153, 153, 153);" />
<input type="button" class="search_but" id="btsch" value="搜索" />
</div>
</body>
</html>
上一条:
下一条:
版权声明:
如果本站的资源使用了您的作品,请联系我们,我们会及时的注明
本站所有的资源均为免费自由下载,目的是让大家学习和交流
由于收集过程中几经转载,所以很多作品的原作者不详
如果您不愿在本站展示,请联系我们,我们会及时删除
相关评论
发表评论