zoukankan      html  css  js  c++  java
  • lineheight在IE6下失效的问题解决办法

    以前做页面IE6行高问题,总出.但为了省时间,都改用PADDING撑起来去解决了....就直接不用行高解决.今天有空又在网上查了查.总结一下解决方法!

    因为li中加入图片,会导致line-height失效如:
    当在一个容器里文字和img、input、textarea、select、object等元素相连的时候,对这个容器设置的line-height数值会失效; 同时以上元素的行高可能×2:

    受影响的浏览器: Microsoft Internet Explorer 5.01 / Windows  Microsoft Internet Explorer 5.5 / Windows  Microsoft Internet Explorer 6

    解决方法:

    对和文字相连接的img、input、textarea、select、object等元素加以属性
    margin: (所属line-height-自身img,input,select,object高度)/2px 0;vertical-align:middle
  • 相关阅读:
    join
    PS1-4
    tftp + bras
    awk调用shell
    curl
    ssh
    查看cp进度,使用watch
    tftp
    scp 链接文件的问题 + tar
    mysql必知必会(三、使用mysql)
  • 原文地址:https://www.cnblogs.com/yiwd/p/2729791.html
Copyright © 2011-2022 走看看