把JQ里面的div换成h2/h3显示的都结果都是不一样的??(换成h3就不显示了,为什么??)
<div>
<span>kkkk</span>
<p>
<div>hhh</div>
<h2>ccc</h2>
<h3>gg</h3>
</p>
<h2>abc</h2>
<div>fff</div>
<h3>dd</h3>
</div>
<script type="text/javascript">
$("p+h3").html("我是p标签下面的")
</script>
<div>
<span>kkkk</span>
<p>
<div>hhh</div>
<h2>ccc</h2>
<h3>gg</h3>
</p>
<h2>abc</h2>
<div>fff</div>
<h3>dd</h3>
</div>
<script type="text/javascript">
$("p+h3").html("我是p标签下面的")
</script>
2015-11-09
举报