我的弹出窗口显示水平滚动条,如何将其删除? [英] My Pop window displays Horizontal scroller, how to remove it?

查看:96
本文介绍了我的弹出窗口显示水平滚动条,如何将其删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

My Pop window displays Horizontal scroller, how to remove it? I am using Mozilla 3.6.3, PHP in Windows, I have an anchor tag with href as given below:

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

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

but when I click on this link my pop window is displayed with a horizontal scrollbar.. so help me to remove this horizontal scroll bar...

已更新

我有

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函数中,

in popWindow function,

如何将overflow-x; hidden附加到此?

how overflow-x;hidden can be appended to this?

推荐答案

为其指定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:

And depending upon your layout, you could use the css as well:

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

这篇关于我的弹出窗口显示水平滚动条,如何将其删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆