css文本 颜色2

    <meta charset="UTF-8">
        <title>练习二</title>
        <style type="text/css">
            .box-p6{
                font-weight: 100;
                color: #000000;
            }
            .box-p7{
                font-weight: 700;
                color: #000000;
            }
            .box-p8{
                font-weight: 900;
                color: #000000;
            }
            .box-p9{
                font-weight: bold;
                color: #000000;
            }
            .box-p10{
                font-weight: bolder;
                color: #000000;
            }
            .p6{
                font-family: "微软雅黑";
                color: #000000;
            }
            .p7{
                font-family: "microsoft yahei";
                color: #000000;
            }
            .p8{
                font-family: arial;
                color: #000000;
            }
            .p9{
                font-family: "宋体";
                color: #000000;
            }
        </style>
    </head>
    <body>
        <p class="box-p6">p标签</p>
        <p class="box-p7">p标签</p>
        <p class="box-p8">p标签</p>
        <p class="box-p9">p标签</p>
        <p class="box-p10">p标签</p>
        <p class="p6">p标签</p>
        <p class="p7">p标签</p>
        <p class="p8">p标签</p>
        <p class="p9">p标签</p>
    </body>
</html>

 

posted @ 2019-01-24 19:00  forwardq  阅读(139)  评论(0编辑  收藏  举报