zoukankan      html  css  js  c++  java
  • 01-HTML基础与进阶-day6-录像282

    05类选择器.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
           /* 类选择器*/
           .mingren {
                  color: red;
           }
    
           .history {
                 font-size: 30px;
           }
    
           .文物 {
                  color: pink;
           }
           
           /*  
           .246 {
                 font-size: 30px;
           }
           */
           .c-orange {
                  color: orange;
           }
        </style>
    </head>
    <body>
        <div class="mingren">名人</div>
        <div class="history">历史</div>
        <div class="文物">文物</div>
        <div class="246">文物</div>
        <p class="c-orange">猥琐发育,别浪</p>
    </body>
    </html>

     06google案例.html

     

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
           span {
                font-size: 100px;
           }
    
           .blue {
                  color: blue;
           }
    
           .red {
                  color: red;
           }
    
           .orange {
                  color: orange; 
           }
    
           .green {
                  color: green; 
           }
        </style>
    </head>
    <body>
        <span class="blue">G</span>
        <span class="red">o</span>
        <span class="orange">o</span>
        <span class="blue">g</span>
        <span class="green">l</span>
        <span class="red">e</span>
    </body>
    </html>

     07一个标签携带多个类.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
           /*
           .lb {
                  color: pink;
                  font-size: 20px;
                  font-weight: 700;
           }*/
    
           .pink {
                  color: pink;
           }
    
           .font20 {
                 font-size: 20px;
           }
    
           .fontWeight {
                 font-weight: 700;
           }
        </style>
    </head>
    <body>
        <div class="pink font20 fontWeight">刘备</div>
        <div class="font20 fontWeight">张飞</div>
        <div class="pink fontWeight">关羽</div>
    </body>
    </html>
  • 相关阅读:
    8.31前端 jQuery
    8.30前端jQuery和数据结构知识
    8.29 jQuery
    8.28 jQuery
    8.27 jQuery
    8.26 js
    chrome开发工具指南(十二)
    chrome开发工具指南(十一)
    chrome开发工具指南(十)
    chrome开发工具指南(九)
  • 原文地址:https://www.cnblogs.com/HiJackykun/p/11032340.html
Copyright © 2011-2022 走看看