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 },这样其它地方都不要设置了.

原文地址:https://www.cnblogs.com/chencidi/p/2133452.html