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

     

  • 相关阅读:
    清单
    1
    s
    模块系统的演进
    改radio样式
    前端css库
    疑惑
    收藏
    事件
    社保档案
  • 原文地址:https://www.cnblogs.com/duan594939295/p/4899224.html
Copyright © 2011-2022 走看看