<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script type="text/javascript" src="jquery-1.2.6.js/>
</head>
<body>
<h1>this is before script block</h1>
<h1>this is after script block </h1>
</body>
</html>
<script/>这中形式的script不能往下执行 body的内容都没有显示
修改成<script type="text/javascript" src="jquery-1.2.6.js></script>运行良好~!
难道<script>不是xhtml标签吗?
</head>
<body>
<h1>this is before script block</h1>
<h1>this is after script block </h1>
</body>
</html>
<script/>这中形式的script不能往下执行 body的内容都没有显示
修改成<script type="text/javascript" src="jquery-1.2.6.js></script>运行良好~!
难道<script>不是xhtml标签吗?
注意看End Tag这部分~是required,而不是optional。