笔记


<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>过滤器中的属性选择器</title>
    <style type="text/css">
    li{ list-style-type: upper-roman;}
    </style>
    <script src="http://blog.fqidc.cn/jquery-3.4.1.min.js" type="text/javascript"></script>
</head>
<body>
    <ol style="margin-left: 5%;">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ol>
    <p><a href="#">发个非官方个灌灌灌灌灌过</a></p>
    <p><a href="123.com">发个非官方个灌灌灌灌灌过</a></p>
    <p><a href="#" target="_blank">发个非官方个灌灌灌灌灌过</a></p>
    <p><a href="#" target="_parent">发个非官方个灌灌灌灌灌过</a></p>
    <button id="button">111</button>
    <script type="text/javascript">
        $("ol li:even").css("backgroundColor","pink");
        $("ol li:odd").css("background-color","green");
        
        $("[target='_blank']").css("color","pink");
        $("[href!='#']").css("color","green");
                  $("[href!='#'],[target]").css("color","aqua");
    </script>
</body>

</html>

##