我正在尝试构建一个搜索页面,在除 Internet Explorer 之外的所有浏览器中,搜索框和搜索按钮之间的对齐方式都是正确的。使用的css代码是
#srchBox {height:25px;width:400px;margin-top:15px;margin-bottom:5px;}
#srchBtn{height:32px; width:100px; vertical-align:middle;}
在 firefox 和 chrome 都可以..
最佳答案
看到:
在 IE9、FF8 和 Chrome 中测试
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="background-color:#DDDDDD">
<input type="text"><input type="button" value="search">
</div>
</body>
</html>
关于html - 搜索框和搜索按钮之间的对齐问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9666637/