zoukankan      html  css  js  c++  java
  • 14 CSS权重深入

    <!--
    继承说明:
    (1)进行样式选择时,不指定标签的话,该选择器是继承来的。
    (2)继承的选择器的优先级为0,和标签选择器的优先级无可比性。
    -->
    
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>权重深入</title>
        <style>
            body{
                color: #333;
                font-size: 12px;
            }
    
            .box #wrap2 #wrap3{
                color: green;
            }
    
            .box .box2 #wrap3 {
                color: red;
                /*font-size: 24px;*/
            }
    
        </style>
    </head>
    <body>
        <div class="box" id="wrap">
            <div class="box2" id="wrap2">
                <div class="box3" id="wrap3">
                    <p>马玉刚</p>
                </div>
            </div>
        </div>
    </body>
    </html>
  • 相关阅读:
    CodeForces 587A
    矩阵快速幂模板
    LCA模板
    Codeforces Round #226 (Div. 2 )
    Codeforces Round #225 (Div. 2)
    SGU132
    SRM 599 DIV 2
    POJ1038
    SGU223
    POJ1185
  • 原文地址:https://www.cnblogs.com/mayugang/p/10251334.html
Copyright © 2011-2022 走看看