zoukankan      html  css  js  c++  java
  • css基本选择器

    包括标签选择器、类选择器、id选择器

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            /*标签选择器*/
            h1{
                background: bisque;
                border-radius: 15px;
            }
            p{
                font-size: 25px;
            }
            /*类选择器*/
            .class1{
                color: green;
            }
            .class2{
                color: blue;
            }
            /*id选择器*/
            #idselect{
                color: red;
            }
        </style>
    </head>
    <body>
    <h1>h1标签</h1>
    <p>p标签</p>
    
    <h1 class="class1">class1</h1>
    <h1 class="class2">class2</h1>
    <h1 class="class2">class2</h1>
    
    <h1 id="idselect">h1 idselect</h1>
    </body>
    </html>
    
  • 相关阅读:
    调试与分析
    GCC
    汇编
    数据恢复
    TCP/IP
    shell
    vmstat、top
    计算程序运行时间的封装
    protobuf
    c++模板
  • 原文地址:https://www.cnblogs.com/zhang-han/p/14092914.html
Copyright © 2011-2022 走看看