做搜索框布局时,发现对input标签无法紧贴在一起,中间会出现空隙
<div class="right-content">
<form action="" class="search">
<input type="text" class="search_key" value="keywords"/>
<input type="submit" class="btn_submit" value="Go"/>
</form>
</div>
- 1
- 2
- 3
- 4
- 5
- 6
.right-content{
width: 260px;
background: #fff;
float: left;
margin-left: 10px;
overflow: hidden;
}