【问题标题】:My Pop window displays Horizontal scroller, how to remove it?我的弹出窗口显示水平滚动条,如何删除它?
【发布时间】:2010-05-27 06:52:59
【问题描述】:

我的弹出窗口显示水平滚动条,如何删除它?我在 Windows 中使用 Mozilla 3.6.3,PHP,我有一个带有 href 的锚标记,如下所示:

<a href="javascript:popupWindow('http://example/english/images/buttons/button_invoice.gif"></a>

但是当我点击这个链接时,我的弹出窗口会显示一个水平滚动条......所以请帮我删除这个水平滚动条......

更新

我有

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=650,height=500,screenX=150,screenY=150,top=150,left=150')

在popWindow函数中,

overflow-x;hidden 如何附加到这个?

【问题讨论】:

    标签: php popup horizontal-scrolling


    【解决方案1】:

    为其指定width

    <a href="javascript:popupWindow('http://example/english/images/buttons/button_invoice.gif', 600"></a>
    
    function popupWindow(url, width)
    {
      window.open('url', 'win_name', 'width=' + width);
    }
    

    根据您的布局,您也可以使用 css:

    <style type="text/css">
      overflow-x:hidden;
    </style>
    

    【讨论】:

    • 你能否详细说明'overflow-x'部分,我必须这样做,请给出示例语法..
    • @OM The Eternity:您需要将该样式放在您打开的弹出窗口中,并在该页面中指定发票图像。
    • @OM The Eternity:我注意到您正在打开一个图像,似乎图像宽度大于您打开的窗口的宽度。
    • Overflow-x:hidden 基本上是做什么的。
    • @OM The Eternity:隐藏水平滚动条。
    猜你喜欢
    • 2023-02-26
    • 2017-09-14
    • 2015-06-24
    • 1970-01-01
    • 2014-10-29
    • 2014-07-16
    • 2011-05-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多