html搜索框文本域和按钮高度显示不一样
<styletype="text/css">body,form,input,textarea,select{padding:0;margin:0;font-family:...
<style type="text/css">
body,form,input,textarea,select { padding:0; margin:0; font-family:arial; font-size:12px; }
.search{
width:290px;
height:22px;
line-height:22px;
}
.search_txt{
width:210px;
height:20px;
border:1px solid #bdbdbd;
background:#FFF;
}
.search_btn{
width:34px;
height:20px;
border:1px solid #bdbdbd;
background:#f4f4f4;
}
</style>
</head>
<body>
<div class="search">
<form action="">
<input class="search_txt" name="" type="text" /><input class="search_btn" value="搜索" name="" type="button" /><input class="search_btn" value="高级" name="" type="button" />
</form>
</div> 展开
body,form,input,textarea,select { padding:0; margin:0; font-family:arial; font-size:12px; }
.search{
width:290px;
height:22px;
line-height:22px;
}
.search_txt{
width:210px;
height:20px;
border:1px solid #bdbdbd;
background:#FFF;
}
.search_btn{
width:34px;
height:20px;
border:1px solid #bdbdbd;
background:#f4f4f4;
}
</style>
</head>
<body>
<div class="search">
<form action="">
<input class="search_txt" name="" type="text" /><input class="search_btn" value="搜索" name="" type="button" /><input class="search_btn" value="高级" name="" type="button" />
</form>
</div> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询