• HTML CSS


    /*  注释  */

    内联样式表

    <p style="属性:值 ">内联样式表</P>

    内嵌样式表

    <style type="text/css">

    p  目标

    {

      属性:值

    }

    </style>

    外部样式表 

    <link href="css/style.css" rel="stylesheet" type="text/css" />

    在CSS 写代码

    p  目标

    {

      属性:值

    }

    标记选择器

    <style type="text/css" >

    p  目标

    {

      属性:值

    }

    </style>

    类别选择器

    <style type="text/css" >

    .zidingyi  定义样式

    {

      属性:值

    }

    </style>

    <p class="zidingyi">class选择器</p>

    Id选择器

    <style type="text/css" >

    #1  目标

    {

      属性:值

    }

    </style>

    <p id="1">class选择器</p>

    复合选择器

    <style type="text/css" >

    h1,h2  并列     p b 嵌套<p>嵌套<b>使用ass</b>的方法</p> 

    {

      属性:值

    }

    </style>

     

  • 相关阅读:
    品质家居 生活之魅
    珍爱之礼 美妙感受
    节日礼物清单
    2014新年礼物推荐清单
    Python元组
    python更新列表
    Python列表
    Python 数字
    Python字符串
    python标准数据类型
  • 原文地址:https://www.cnblogs.com/duan594939295/p/4899224.html
Copyright © 2020-2023  润新知