zoukankan      html  css  js  c++  java
  • 前端 字体样式

    字体样式

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>文本属性</title>
        <style>
            .box {
                 300px;
                height: 300px;
                background-color: orangered;
            }
            .box {
                /*大小*/
                font-size: 30px;
                /*颜色*/
                color: blue;
                /*字族*/
                font-family: "STSong", "新宋体", "Arial";
                /*字重: lighter | normal | bold | 100 ~ 900*/
                font-weight: 500;
                /*字体样式*/
                font-style: oblique;
            }
            .box {
                /*文本划线: underline  line-through  overline*/
                text-decoration: none;
    
                /*文本水平位置: left center right*/
                text-align: center;
    
                /*行高*/
                line-height: 300px;
            }
            .box {
                /*整体设置*/
                font: bold 20px/300px '黑体', 'Arial';
                color: darkcyan;
                text-align: left;
                
                /*首行缩进*/
                text-indent: 20px;
                /*字间距*/
                letter-spacing: 10px;
            }
        </style>
    </head>
    <body>
        <div class="box">
            文本ABC ab
        </div>
    </body>
    </html>
    
  • 相关阅读:
    哈夫曼树
    MongoDB
    Node.js 搭建Web
    Node.js
    HDFS编程
    scp
    MapRecude
    级数
    (转)MySQL百万级数据库优化
    ssh
  • 原文地址:https://www.cnblogs.com/bladecheng/p/11284502.html
Copyright © 2011-2022 走看看