<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{margin:0pxpadding:0}
div #div1{
width:300px
height : 300px
float : left
background : red
}
div #div2{
width:300px
height : 300px
float : left
background : green
}
</style>
<script type="text/javascript">
function oc(obj){
var div2 = document.getElementById("div2")
div2.innerHTML = obj.innerHTML
}
</script>
</head>
<body>
<div>
<div id="div1">
<li>
<ul><a onclick='oc(this)' href="#">yuxiangrousi</a></ul>者大
<ul><a onclick='oc(this)' href="#" >yuxiangqiezi</a><裂镇/ul>
<ul>首源竖<a onclick='oc(this)' href="#">tangcuyu</a></ul>
</li>
</div>
<div id='div2'>
</div>
<div>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)