zoukankan      html  css  js  c++  java
  • 【代码笔记】Web-CSS-CSS Fonts(字体)

    一,效果图。

     

    二,代码。

     

    复制代码
    <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>CSS Fonts(字体)</title>
        <style>
        body {
            font-size: 100%;
        }
        
        h1 {
            font-style: normal;
            font-size: 40px;
            font-size: 2.5em;
        }
        
        p.serif {
            font-family: "Times New Roman", Times, serif;
            font-style: italic;
            font-size: 30px;
            font-size: 1.875em;
        }
        
        p.sansserif {
            font-family: Arial, Helvetica, sans-serif;
            font-style: oblique;
            font-size: 14px;
            font-size: 0.875em;
        }
        </style>
    </head>
    
    <body>
        <h1>css font-family</h1>
        <p class="serif">this is a paragrapth,shown in the times new Roman font.</p>
        <p class="sansserif">this is a paragraph,shown in the arial font.</p>
    </body>
    
    </html>
    复制代码

     

    参考资料:《菜鸟教程》

  • 相关阅读:
    团队项目-选题报告
    图论3-分层图最短路
    图论2-次短路计数
    图论1-k短路
    noi online 提高组t2冒泡排序
    图和树
    搜索(bfs)
    搜索(dfs)
    笔记
    打工
  • 原文地址:https://www.cnblogs.com/yang-guang-girl/p/10280444.html
Copyright © 2011-2022 走看看