<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>
<div id="xiong"></div>
<script type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script type="text/javascript">
//获取jquery对象
var target = $("#xiong")
target.html("我是动态添加的文本").height(60).width(160).css("border",
"2px solid black").css("background-color", "#ddddff").css(
"padding", 20);
</script>
</body>
</html>
理解jquery设计
最新推荐文章于 2024-11-12 10:54:49 发布