我想在搜索框和搜索按钮之间的所有浏览器(除了Internet Explorer)之间构建搜索页面和对齐方式是正确的。所使用的CSS代码是搜索框和搜索按钮之间的对齐问题
#srchBox {height:25px;width:400px;margin-top:15px;margin-bottom:5px;}
#srchBtn{height:32px; width:100px; vertical-align:middle;}
其所有的权利在Firefox和Chrome ..
我想在搜索框和搜索按钮之间的所有浏览器(除了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>
u盘垂直对齐4 srchBtn的所有CHILDS。 尝试将srchBox & srchBtn放入div中,并为div元素指定垂直对齐。
希望这是个问题
otherwhise尝试垂直对齐:基线
ITs不wking ... – Sam 2012-03-12 12:29:22
尝试浮动:留在这两个元素。您可能需要边距设置为0。
请把你的代码,以便更好地理解 – sandeep 2012-03-12 12:06:22
THR是nthing更多... JST和输入类型的文本和按钮.. – Sam 2012-03-12 12:29:45