搜索框和搜索按钮
搜索框和搜索按钮怎么设置在同一行
搜索框和搜索按钮怎么设置在同一行
2014-12-31
<form method="post" action="#"> <input type="text" class="scher" /><input class="button" type="button" value="百度一下" /> </form>
然后是CSS样式
.scher{
width: 500px;
height: 30px;
padding: 5px;
}
.button{
width: 115px;
height: 43px;
border: none;
background-color: #38f;
color: #fff;
}这是我自己写的一个简单的类似百度的样式,你看一下是不是你需要的
举报