zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    sqlite3 增删改查
    Charles 修改接口返回值
    矫正Django 时间不正确
    unittest 使用 HTMLTestRunner 生成测试报告
    unittest 使用例子
    pyppeteer
    linux源码编译-安装timescaledb数据库(中标麒麟+龙芯CPU) (转载)
    不会用java api对kafka topic进行创建、查询和删除,你也太out了(建议收藏)(转载)
    django 学习(转载)
    Docker 启动镜像(转载)
  • 原文地址:https://www.cnblogs.com/jjyjjyjjy/p/1166881.html
Copyright © 2011-2022 走看看