87,921
社区成员
发帖
与我相关
我的任务
分享
<html xmlns:t="urn:schemas-microsoft-com:time">
<head>
</head>
<body>
<!--模板划分区域划-->
<div style="position: absolute; top: 100; left: 100; width: 800; height: 400; background-color:#F0FACC"/>
<!--区域1-->
<div style="position: absolute; top: 68; left: 70; width: 300; height: 240; z-index:2; background-color:#AE00AE; font-size:2px">
<img src="1.gif">
</div>
<!--区域2-->
<div style="position: absolute; top: 68; left: 430; width: 300; height: 240; z-index:2; background-color:#019858; font-size:2px">
</div>
</div>
</body>
</html>
<script>
var obj = document.getElementsByTagName("div")[0].innerHTML;
alert(obj);
</script>
<div>aaaa</div>
<div>bbbb</div>