1.问题css样式:
<style>
#keywords{
height: 36px;
line-height: 36px;
width: 500px;
border: 1px solid #b0b0b0;
border-right:0px ;
}
#keywords:focus{
border: 1px solid rgb(71,145,255);
border-right:0px ;
}
input[type="button"]{
height: 40px;
line-height: 40px;
width: 98px;
border: 0px;
background-color: #3385fF;
color: white;
}
</style>
body样式
<input type="text" name="keywords" id="keywords"><input type="button" value="百度一下">
显示情况:
2.解决方法
分别给text和button的css加一个vertical-align:middle属性即可(注意高度)
解决后的显示情况: