+ -
当前位置:首页 → 问答吧 → 新手问题

新手问题

时间:2009-11-17

来源:互联网

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Hello World jQuery!</title>
    <script type="text/javascript" src="jquery-1.3.2.js"></script>
</head>
<body>
<div>John Resig</div>
<div>George Martin</div>
<div>Malcom John Sinclair</div>
 <script type="text/javascript" >
     $("div:contains('John')") ; 
    </script>
</body>
</html>
这段代码在ie7中,没有查找包含"john"的文字。不知道是什么原因。小弟新学的

作者: li_hai_001   发布时间: 2009-11-17

相关阅读 更多