急死我:怎样取得body的宽度 screen->width最好用table控制页面布局 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 screen->width那是取得分辨率的啊,比如1024,800什么的,是死的呀,我要的是浏览器实实在在的宽度 document.body.scrollWidth也不对,取得的总是1024,就是screen.width的值, body.clientWidthbody.offsetWidth 应该是:document.body.clientWidth;document.body.offsetWidth; 对,就是document.body.offsetWidthdocument.body.clientWidth但是不知道什么时候document.body.offsetWidth<>document.body.clientWidth ????? yonghengdizhen(秋叶映红了天) 的document.body.scrollWidth也不总是screen.width,上面是我测试错了,但是决不能正确取得窗口的实际宽度.那是内容的横向宽度,不如一个图片有531px,当窗口小于531时,document.body.scrollWidth也总是531 body也有border属性!可以设置其宽度!offsetWidth包括border.而clientWidth不包括border. 关于IE历史记录的问题 强烈推荐:240多个jQuery插件 javascript中的函数调用问题 ubb相关问题 innerHTML修改内容,内容是修改了~但是显示不出来! 如何取得下拉列表的文本 confirm参数设置问题?? 让程序员变成正常人(转载) 如何利用javascript自动下载一些文件到用户的本地指定路径 js效果 我怎样访问一个插入的图片 实在没辙了 求大家帮帮俺吧 拜托大家了
body.offsetWidth
document.body.clientWidth;
document.body.offsetWidth;
document.body.offsetWidth
document.body.clientWidth
但是不知道什么时候document.body.offsetWidth<>document.body.clientWidth ????? yonghengdizhen(秋叶映红了天) 的document.body.scrollWidth也不总是screen.width,上面是我测试错了,但是决不能正确取得窗口的实际宽度.那是内容的横向宽度,不如一个图片有531px,当窗口小于531时,document.body.scrollWidth也总是531
而clientWidth不包括border.