这样呢?
document.getElementById("pro_man_action").offsetWidth
document.getElementById("pro_man_action").offsetWidth
解决方案 »
- 各位帮帮忙,改一下js,谢谢!!!
- windows2003中如何获取iframe的innerHTML
- 这个应该怎么写 把图片替换成 flash
- 一个正则表达式,关于字符串替换
- 正则,提取<# #>标签中间的内容,在线等
- 为什么脚本中的变量变成了undefine?????高手~帮忙~谢谢~
- 怎样实现javascript在浏览器上连续输出内容~!??document.write,innerHTML都不行
- 几个小问题!
- 如何用javascript让父窗口的表单submit?
- Textarea问题
- 看不懂的代码
- |zyciis | FireFox IE AJAX 一个XMLHTTP谁帮我改一下在FireFox里面可以用 第二贴 问程序写法 谢谢
alert(document.getElementById("pro_man_action").offsetHeight);
</script>
function bbq(){
alert(document.getElementById("pro_man_action").offsetHeight);
}
window.onload = bbq;
function man_menu_height()
{document.getElementById("pro_man_menu").style.height=document.getElementById("pro_man_action").offsetHeight);}
window.onload=man_menu_height;可是没效果,估计又错了
<script>
document.getElementById("pro_man_menu").style.height=document.getElementById("pro_man_action").scrollHeight-20+"px";
</script>竟然不管用,朋友说明一下,谢谢了
var l=document.getElementById("left").scrollHeight
var m=document.getElementById("middle").scrollHeight
var r=document.getElementById("right").scrollHeight
layoutHeight=Math.max(l,m,r)
document.getElementById("left").style.height=layoutHeight+"px"
document.getElementById("right").style.height=layoutHeight+"px"
document.getElementById("middle").style.height=layoutHeight+"px"
</script>
在给你个简单的,如果不行的话,你看下CSS里面高度是不是写死了
这个可以
<script>
function man_menu_height()
{document.getElementById("pro_man_menu").style.height=document.getElementById("pro_man_action").scrollHeight-20+"px";}
window.onload=man_menu_height;
</script>
这个不行
<script>
document.getElementById("pro_man_menu").style.height=document.getElementById("pro_man_action").scrollHeight-20+"px";
</script>