演示代码:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="reset.css"/>
        <style type="text/css">
            #wyzx2{
                color: blue;
            }
            .wyzx1{
                color: green;
            }
            p{
                /* color: red; */
                color: red!important;/* 只提升一条语句的优先级,不提升选择器优先级 */
            }
        </style>
    </head>
    <body>
        <p class="wyzx1" id="wyzx2">我要自学</p>
    </body>
</html>
打开支付宝首页搜“559920739”领红包,领到大红包的小伙伴赶紧使用哦! (如果你觉得本文不错,请扫描下面二维码随意打赏哦)
最后修改:2020 年 09 月 15 日
如果觉得我的文章对你有用,请随意赞赏