摘要:
<script type="text/javascript">document.getElementById("div1").style.height=document.getElementById("zg").scrollHeight+"px";document.getElementById("div2").style.height=document.getElementById("zg").scrollHeight-2+"px";</ 阅读全文
posted @ 2013-06-18 17:23
Liu66~
阅读(611)
评论(0)
推荐(0)
摘要:
window.onload=function(){ var img = document.getElementById("imgdiv"); var div = document.getElementById("div1"); var marginTop = div.offsetHeight - img.height; img.style.marginTop = (marginTop/2) + "px";} 阅读全文
posted @ 2013-06-18 17:20
Liu66~
阅读(196)
评论(0)
推荐(0)