给窗口或是表格一个id 
然后通过调用 id.offsetWidth  id.offsetHeight 可得到计算过的宽高度值
窗口的宽度我看是得不到的吧, 只能得到客户区的宽高度

解决方案 »

  1.   

    to get the window's width and height:
    screen.width
    screen.heightto get a table's width and height:
    give an id to your table,
    then use the blow to get them:
    document.all.yourtablesid.offsetWidth
    document.all.yourtablesid.offsetHeight
      

  2.   

    不是,我的意思是这样的:
    我想在iframe里面显示一个表格,你知道ie6.0里面是的高度设为100%是没有用的,我想让这个表格的高度等于这个iframe的高度。
    所以??????
      

  3.   

    你知道你的iframe的高度吗?
    应该是知道的,不论是百分比的还是像素的,知道了就可以让你的表格的offsetHeight熟悉值等于那个值就可以了啊(不过好像得换算成像素的)。