window.showModalDialog 隐藏模式对话框的水平滚动条

window.showModalDialog("aaa.html?timestamp=" + Math.random(), "aa12", "dialogWidth=900px;dialogHeight=600px");

 

1. 在弹出的子页面(aaa.html)中把下面的代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

2. body里添加:<body style="overflow-x: hidden">
    ***也可以在样式表里添加  html,body{ overflow-x:hidden },这样其它地方都不要设置了.

posted @ 2011-08-10 11:25  陈同学  阅读(1112)  评论(0编辑  收藏  举报