• IE6 7BUG 文本对齐


    BUG描述

    设置了对齐方式text-align后,正常浏览器只有文本受影响,而IE6 7会影响到内层其他元素

    BUG

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <meta name="robots" content="noindex">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Disappearing List Background Bug Demo - hasLayout.net by Zoffix Znet</title>
    
    <style type="text/css">
    
    body {
        background: #fff;
        color: #000;
    }
    #container1 { text-align: center;
                background: #0000FF;
    
     }
    
    #container2 { text-align: right;
                background: #00ffFF;
    
     }
        .inner { width: 10em;
                background: #FF00FF;
        }
    </style>
    <div id="container1">
        Give me the aligns!
        <div class="inner">Oh noes!</div>
    </div>
    
    <div id="container2">
        Give me the aligns!
        <div class="inner">Oh noes!</div>
    </div>

    解决

    改善文档结构,添加语义标签,应用FLOAT,上文中给文字段落加上标签<P>,给<P>应用FLOAT:LEFT/RIGHT

  • 相关阅读:
    易用性问题回复
    阅读心得2:《余额宝技术架构及演进 》
    假期周进度报告8
    假期周进步报告7
    假期周进度报告6
    假期周进度报告5
    假期周进度报告4
    假期周进度报告3
    JAVA中SSH框架
    一张图说明CDN网络的原理
  • 原文地址:https://www.cnblogs.com/amws/p/3142484.html
Copyright © 2020-2023  润新知