zoukankan      html  css  js  c++  java
  • demo24-文本属性

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style type="text/css">
                p{
                    color: red;
                    /*
                     * font-family: "微软雅黑"; 字体样式
                     */
                    font-family: "微软雅黑";
                    /*
                     注意:如果是字体标签,那么使用<font face="宋体">属性
                     如果是在样式里面,使用font-family属性
                     * */
                    font-size: 32px;
                    /*
                     font-weight: 400  设置字体的粗细
                     * */
                    font-weight: bolder;
                    /*
                     * 
                    font-weight: normal;表示默认字体
                    font-weight: bold;字体加粗
                    font-weight: bolder;字体更粗
                    font-weight: 400;数字方式表示字体粗细程度
                    */
                    
                    
                    /*
                     line-height: 200% 设置行高 ,作用是文本竖着居中显示,即文字在纵向上是居中的
                     * */
                    line-height: 100%;
                    /*
                     text-indent: 2em 设置首行缩进2个文本位置,即通俗理解的空两格的意思
                     * */
                    text-indent: 2em;
                }
                a{
                    /*
                     text-decoration: none 去掉a标签自带的下滑线
                     * */
                    text-decoration: none;
                }
            </style>
            
        </head>
        <body>
            <p>
                所有的男人都是骗子,不管漂亮的女孩还是不漂亮的女孩,都会被骗,只不过,幸运的女孩,
            遇到的是一个大骗子,会被骗一辈子,不幸运的女孩,遇到的是一个小骗子,被骗一阵子
            </p>
            <a href="#">郝丽浩</a>
        </body>
    </html>
  • 相关阅读:
    HUSTOJ:Transit Tree Path
    HUSTOJ:5500 && 洛谷:P1412:经营与开发
    hdu:2036.改革春风吹满地
    hdu:2030.汉字统计
    Leetcode:338. Bit位计数
    【学习笔记】圆方树(CF487E Tourists)
    BZOJ3238 [Ahoi2013]差异
    CF 187D BRT Contract
    CF 36E Two Paths
    CF 49E Common ancestor
  • 原文地址:https://www.cnblogs.com/huaibin/p/12587388.html
Copyright © 2011-2022 走看看