<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<div id="d" style="width=300px; height=60px; border=1px solid red;" >
abc
</div>
</body>
<script language="javascript">
var i=document.createElement("div");
with(i)
{
width="30px";
heigth="20px";
style.backgroundColor="#999999";
innerHTML="fdf";
}
document.getElementById("d").appendChild(i);
</script>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<div id="d" style="width=300px; height=60px; border=1px solid red;" >
abc
</div>
</body>
<script language="javascript">
var i=document.createElement("div");
with(i)
{
width="30px";
heigth="20px";
style.backgroundColor="#999999";
innerHTML="fdf";
}
document.getElementById("d").appendChild(i);
</script>
</html>