zoukankan      html  css  js  c++  java
  • 训练

     

    <!DOCTYPE html>
    <html>
    
        <head>
            <meta charset="UTF-8">
            <title></title>
            <link rel="stylesheet" type="text/css" href="css/my.css" />
        </head>
    
        <body>
            <font class="s1">梁山排行榜</font><br/>
            <span class="s2">宋江</span><br/>
            <span class="s3">卢员外</span><br/>
            <span class="s4">吴用</span><br/>
            <span class="s3">豹子头</span><br/>
            <span class="s3">大刀关胜</span><br/>
        </body>
    
    </html>
    View Code

    my.css

    .s1 {
        font-size: 30px;
        color: blue;
    }
    
    .s2 {
        background-color: silver;
        font-style: italic;
        font-weight: bold;
        color: red;
    }
    
    .s3,
    .s4 {
        background: lightgray;
        font-weight: bold;
    }
    
    .s4 {
        font-style: italic;
        text-decoration: underline;
    }
    View Code

     

    <!DOCTYPE html>
    <html>
    
        <head>
            <meta charset="UTF-8">
            <title></title>
            <link rel="stylesheet" type="text/css" href="css/my.css" />
        </head>
    
        <body>
            <font class="s1">梁山排行榜</font><br/>
            <span class="s2">宋江</span><br/>
            <span class="s3">卢员外</span><br/>
            <span class="s4">吴用</span><br/>
            <span class="s3">豹子头</span><br/>
            <span class="s3">大刀关胜</span><br/>
            <a href="index.html">goto souhu大刀王五</a><br/>
            <a href="#">goto souhu大刀王五</a><br/>
            <a href="#">goto souhu大道往往无</a><br/>
        </body>
    
    </html>
    View Code

    my.css

    .s1 {
        font-size: 30px;
        color: blue;
    }
    
    .s2 {
        background-color: silver;
        font-style: italic;
        font-weight: bold;
        color: red;
    }
    
    .s3,
    .s4 {
        background: lightgray;
        font-weight: bold;
    }
    
    .s4 {
        font-style: italic;
        text-decoration: underline;
    }
    /*使用html元素选择器*/
    a:link{
        color: red;
        font-family: "华文新魏";
        text-decoration: none;
    }
    a:hover{
        color: green;
        font-size: 40px;
        font-family: "宋体";
        text-decoration: underline;
    }
    a:visited{
        color: gray;
    }
    View Code
  • 相关阅读:
    python3中的匿名函数
    python3拆包、元组、字典
    python3函数中的不定长参数
    python3中的缺省参数和命名参数
    python3字符串的常见操作
    用python使用Mysql数据库
    Git常用命令
    Linux下配置Nginx(在root的/etc/rc.local里配置开机启动功能http://tengine.taobao.org/)
    大数据项目中js中代码和java中代码(解决Tomcat打印日志中文乱码)
    java中时间
  • 原文地址:https://www.cnblogs.com/helloworld2019/p/10902328.html
Copyright © 2011-2022 走看看