初学jQuery为什么写的jQuery运行不了
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><title>MyHtml_1....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MyHtml_1.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body>
<div id="lee"></div>
<script type="text/javascript" src="jquery-1.8.0.js">
var target=$("#lee")
target.html("jQuery")
.height(60)
.width(160)
.css("border","2px solid black")
.css("background-color","#ddddff")
.css("padding",20);
</script>
</body>
</html>
jquery-1.8.0.js已经包含在同一个文件夹里面了,但是打开html文件什么都不显示是怎么回事
新手求助啊! 展开
<html>
<head>
<title>MyHtml_1.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body>
<div id="lee"></div>
<script type="text/javascript" src="jquery-1.8.0.js">
var target=$("#lee")
target.html("jQuery")
.height(60)
.width(160)
.css("border","2px solid black")
.css("background-color","#ddddff")
.css("padding",20);
</script>
</body>
</html>
jquery-1.8.0.js已经包含在同一个文件夹里面了,但是打开html文件什么都不显示是怎么回事
新手求助啊! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询