IE6 line-height属性失效
2015-05-06 21:03
260 查看
在css设置中,我们一般用行高line-height来设定某一行的高度,line-height属性和height属性搭配使元素在父级中垂直居中。这在ie7与firefox等浏览器都适用。但当行中有其他元素时(如图片,SPAN,li..)在IE6.0下line-height会不起效果
解决办法
对和文字相连接的img、input、textarea、select、object等元素加以属性
margin: (所属line-height-自身img,input,select,object高度)/2px 0;
vertical-align:middle
解决办法
对和文字相连接的img、input、textarea、select、object等元素加以属性
margin: (所属line-height-自身img,input,select,object高度)/2px 0;
vertical-align:middle
相关文章推荐
- IE6中line-height属性失效的解决办法
- 【浏览器兼容】在IE6下行高属性(line-height)失效的解决办法!
- 关于IE6下line-height属性失效问题
- 在ie6中,当文字和img、input、textarea、select、object等对象在同一个容器中的时候,line-height属性失效。
- IE6 line-height 失效
- 解决IE6下,给图片加上line-height属性不起作用的解决方法
- 【转】IE6下Line-height失效问题
- line-height: 属性中文失效解决方案
- IE6行高line-height失效问题方法详解
- line-height 在IE6 下失效的问题 解决办法(已经亲手验证)
- IE6下line-height失效:当文字与图片img在同一行中显示时line-height失效的解决办法
- 标签中包含input时line-height属性失效的解决办法
- ul列表中包含input时line-height属性失效的解决办法
- line-height在IE6下失效原因
- 关于IE6下line-height失效的一种诡异情况
- ie6 line-height失效 待测试
- ie6下的line-height属性
- IE6 line-height失效解决办法
- 【转载】解决IE6下的行高line-height失效问题
- line-height在IE6下失效的问题解决办法