dps123456789
dps123456789
2010-05-27 06:52
浏览 189
已采纳

我的弹出窗口显示水平滚动条,如何删除它?

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...

UPDATED

I have

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')

in popWindow function,

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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongyi1982
    dongyi1982 2010-05-27 06:56
    已采纳

    Specify the width to it:

    <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);
    }
    

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

    <style type="text/css">
      overflow-x:hidden;
    </style>
    
    点赞 评论

相关推荐