日期:2014-05-16 浏览次数:20611 次
<div> Resig</div> <div>George Martin</div> <div>Malcom John Sinclair</div> <div>J. Ohn</div> <script> $("div:contains('John')").css("color", "red"); </script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <div> Resig</div> <div>George Martin</div> <div>Malcom John Sinclair</div> <div>J. Ohn</div> <script> $("div:contains('John')").css("color", "red"); </script>
------解决方案--------------------
<div> <div> Resig</div> <div>George Martin</div> <div>Malcom John Sinclair</div> <div>J. Ohn</div> </div>