不管在哪里,加上这个样式就行了 style="overflow:auto;", 如<body style="overflow:auto;">。也可以单独设置,水平滚动条是overflow-x, 垂直是overflow-y。

解决方案 »

  1.   

    啊啊,我是在window.open中需要,window.open(url,"new","滚动条,宽度,高度")
      

  2.   

    <DIV style="overflow:auto; width:200px; height:100px; border:1px solid black">aaaaaaaaaaaaaaa<br><br><br><br><br><br><br>aaaaaaaa</DIV>
    是这样不?
      

  3.   

    SuperBJack(我想飞翔) 你的方法我是试过后不管用,才来这里求助的,还有别的方法吗?
      

  4.   

    发个例子,不知道你是不是要这样的效果:
    如果在a.htm中打开b.htm,如下:
    <!--a.htm-->
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script>
    <!--
    function open_window(){
    window.open("b.htm","new", "scrollbars=yes,width=100,height=50");
    }
    //-->
    </script>
    </head><body>
    <input type="button" value="Open Window" onclick="open_window();"></body>
    </html><!--b.htm-->
    <html>
    <body style="overflow-y:auto;overflow-x:hidden;">
    <h1>Welcom!</h1>
    <h1>Welcom!</h1>
    <h1>Welcom!</h1>
    <h1>Welcom!</h1>
    <h1>Welcom!</h1>
    <h1>Welcom!</h1>
    </body>
    </html>
      

  5.   

    要的是你这样的效果,但不是在BODY里写,我想有没有在WINDOW.PEN时能不能作到,因为
    我是用在NOTES里的,表单里没法写BODY