首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

网页显示布局有关问题。

2012-09-11 
网页显示布局问题。求助!先上代码HTML codehtml xmlnshttp://www.w3.org/1999/xhtmlhead runatserv

网页显示布局问题。求助!
先上代码

HTML code
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title>文档阅览</title>    </head><body >    <form id="form1" runat="server" style="height:100%; width:100%">        <div style="width:100%; height:100%">        <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" id="PDF1" name="PDF1" style="width:100%; height:100%" border="0">                 <param name="SRC" value="<%=FilePath %>"/>        </object>        </div>        <script language="JavaScript" type="text/javascript">                       [color=#FF0000]alert(document.body.clientHeight);[/color] [color=#339966]//此处获取的高度是192[/color]            document.getElementById("PDF1").height = document.body.clientHeight;            document.getElementById("PDF1").width = document.body.clientWidth;        </script>        </form></body></html>


红色处为什么是192呢(IE8下面)?在IE6下面显示就正常!!求助!

[解决办法]
我测试 IE8 下没有问题啊! 和 IE6下效果相同~~~
[解决办法]
删小缓存试试 最好用jquery 兼容性好
[解决办法]
兼容性吧,删除缓存看看,网上找一些兼容的css设置一下

热点排行