0

我的弹出窗口显示水平滚动条,如何删除它?我在 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 如何附加到这个?

4

1 回答 1

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>
于 2010-05-27T06:56:06.697 回答