zoukankan      html  css  js  c++  java
  • 样式文件导入方法

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <link rel="stylesheet" href="commons.css"/>
    </head>
    <body>
        <div class="c3">导入style文件测试</div>
    
    </body>
    </html>
    
    commons.css文件
    #i1 {
        background-color: burlywood;
        height: 48px;
    }
    
    .c {
        background-color: red;
        height: 48px;
    }
    
    .c2 {
        background-color: blue;
        height: 48px;
    }
    
    span {
        background-color: yellowgreen;
        height: 48px;
    }
    
    a {
        background-color: blue;
        height: 48px;
    }
    
    div span {
        background-color: black;
        color: white;
        height: 48px;
    }
    
    .c2 div {
        background-color: yellow;
        font-size: 45px;
        color: red;
        height: 48px;
    }
    
    .c2 div div {
        background-color: yellow;
        color: black;
        height: 48px;
    }
    
    #i5, #i6, #i7, .c3, .c4 {
        background-color: yellow;
        color: blue;
        height: 48px;
    }
    
    input[type='text'] {
         100px;
        height: 200px;
    }
    
    .c1[type='zq'] {
         200px;
        height: 200px;
    }
    
  • 相关阅读:
    王道训练营-C语言-1
    错排问题
    王道训练营-C语言-1
    图文处理 生成海报
    根据经纬度按距离排序
    vue总结
    docker+consul
    doker es
    知识库
    php笔记
  • 原文地址:https://www.cnblogs.com/qiangayz/p/8712109.html
Copyright © 2011-2022 走看看