• CSS基础


    1.ID
    2.ID,camel case
    3.使ID,使.
    4.使div


    二.
    ,,
    p {color:black;}
    a {text-decoration:underline;}
    h1 {font-weight:bold;}

    器 
    li a {text-decoration:none;}

    ID
    #intro {font-weight:bold;}


    .datePosted{color:green;}

    型..ID
    #mainContent h1 {font-size:1.8em;}
    #secondaryContent h1 {font-size: 1.2em;}

    素,使
    *{ padding:0; margin:0;}

       :
    #nav > li {background:url(folder.png)no-repeat left top:}
    <ul id="nav">
    <li>Home</li>
    <li>Services
    <ul>
    <li>Design</li>
    <li>Developement</li>
    <li>Consultancy</li>
    </ul>
    </li>
    <li>Contact Us</li>
    </ul>
    IE6使仿:
    #nav li {background:url(folder.png)no-repeat left top:}
    #nav li * {background-image:none;}


    h1 + p {font-weight:bold;}

    <h1>Main Heading</h1>
    <p>First Parargraph</p>
    <p>Second Paraapraph</p>
    IE6




    :linkvisited .
    :hover. :active :focus ,.

    CSS
    <link href ="Css_Path" rel="stylesheet" type="text/css">

    @import url("Css_Path");
    html.

    CSS 
    /*-----------------------------------------
       version:
       author:
       email:
       website:
    -------------------------------------------*/



     .(padding),(border)(margin)
    | ----------------------------------------------------
    |                               边(margin)
    |      |--------------------------------------------
    |      |                         框(border)
    |      |          |-----------------------------
    |      |          |               充(padding)
    |      |          |          |---------------
    |      |          |          |      

    .0,width,height

    加:


    : p,h1div(block-level element),
    : strongspan.
    使display.

    CSS:,
    :html
    列,.
    .使.. .
    :
    ,""
    :
    ,使

    :

    样(IE使),
    :
    clear

  • 相关阅读:
    新装CentOS7用yum安装软件提示 cannot find a valid baseurl for repobase7x86_64
    新手快速上手webpack4打包工具的使用详解
    2种方法教你,如何将exe注册为windows服务,直接从后台运行
    如何部署前端DIST目录
    安装了vs2019 编译node-sass node-gyp 找不到编译器的解决方法
    node-sass安装失败之npm ERR! Failed at the node-sass@4.9.4 postinstall script.
    Node.js安装及环境配置之Windows篇
    npm源切换,从淘宝源切换至npm源
    找不到Python问题解决 (转)
    redisson
  • 原文地址:https://www.cnblogs.com/jjyjjyjjy/p/1166881.html
Copyright © 2020-2023  润新知