首页 新闻 会员 周边

ie6内联元素(span、a等)垂直居中问题,input标签高度问题

0
悬赏园豆:20 [待解决问题]

代码如下:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style>
body{ font-size:12px; font-family:"微软雅黑"}
.words{ width:60px; line-height:26px;height:26px}
.jiansuo{ width:40px; line-height:26px;height:26px}
.si{ line-height:26px; display:inline-block; height:26px}
</style>

<body>
<div class="li">
<span class="si">四大家</span><input type="text" class="words" /><input type="button" value="检索" class="jiansuo" />
</div>
</body>
</html>

结果高度都没对齐,span元素内的文字也没垂直居中。。。。。怎么回事啊

angel雨禾的主页 angel雨禾 | 初学一级 | 园豆:182
提问于:2015-09-08 11:26
< >
分享
所有回答(1)
0

用padding吧,你一个DIV那么多的标签,直接设置高度与DIV相同,那样写不行的

稳稳的河 | 园豆:4216 (老鸟四级) | 2015-09-08 12:35
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册