• 技术文章 >web前端 >html教程

    css的学习_html/css_WEB-ITnose

    2016-06-24 11:23:20原创418

    第一天.

    css

    1.知道 内联 内部 外部 的优先权

    2.css的语法

    3.id 选择器 以及 类选择器 和属性选择器

    4.对图片 长 宽 的编辑 调整图片

    5.通过内部 对整个页面 文字 颜色 的编辑

    主要讲解了

    一级.内联 style="" 权值1000 优先权最高

    二级 ID选择器 #content, 权值0100

    三级 类 伪类选择器 contenr 权值 0010

    四级 元素选择器 div , p, 权值 0001

    熟悉嵌套的方法 和优先级

    ");
    };
    
    //check document ready
    function docReady(t) {
        "complete" === document.readyState ||
        "interactive" === document.readyState
          ? setTimeout(t, 1)
          : document.addEventListener("DOMContentLoaded", t);
    }
    
    //check if wwads' fire function was blocked after document is ready with 3s timeout (waiting the ad loading)
    docReady(function () {
      setTimeout(function () {
        if( window._AdBlockInit === undefined ){
            ABDetected();
        }
      }, 3000);
    });