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

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

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 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>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器