简单过滤器
第一个
第二个
</div>
<p>div外面的</p>
<style type="text/css">
.background{background: #cef;}
body{font-size: 12px;}
</style>
<script type="text/javascript"charset="GBK">
$(document).ready(function(){
$("div~p").addClass("background");
});
</script></head>
<body>
</body>
第一个
第二个
</div>
<p>div外面的</p>
<style type="text/css">
.background{background: #cef;}
body{font-size: 12px;}
</style>
<script type="text/javascript"charset="GBK">
$(document).ready(function(){
$("div~p").addClass("background");
});
</script></head>
<body>
</body>
检测这个页面
过滤选择器
首页 |