2009-09-28 54 views
3

我试图打开一个新窗口,出于某种原因,滚动条不会出现在Firefox或IE中,但在Chrome浏览器中可以正常工作& Opera。不会出现在新窗口中的滚动条

这里的按钮上的JavaScript代码(从PHP脚本), 及以下,如果它是更具可读性,也就是输出HTML:

window.open('".BASE_URL."utils/viewProfile.php?key=".$key."',null,'width=1280,height=1024,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=1,resizable=1')" 

<input class="input-button btn_generic_nav6up" type="button" onclick="window.open('https://domain.com/utils/viewProfile.php?key=8UjKKydCyTx1V7E2A0xklA%3D%3D',null,'width=1280,height=1024,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=1,resizable=1')" value="view profile" /> 
+0

它在IE中工作,但在IE中不起作用? – slf 2009-09-28 15:10:32

+0

oops。那是一个错字。感谢您指出,我现在纠正它。 – GSto 2009-09-28 16:45:38

回答

6

关闭我的头顶,我认为这是scrollbars(复数),而不是scrollbar

此外我还以为它是scrollbars=yes而不是scrollbars=1,但它可能会工作。

+0

是的,'滚动条= 1'很好,对不起。 – 2009-09-28 15:14:18

+0

你的权利。这是一个错字。它应该是“滚动条”而不是“滚动条” – GSto 2009-09-28 15:37:37

2
窗口

,将其添加到样式表:

html, body{ 
    overflow: scroll; 
} 
+0

这不能正常工作。有一个滚动条,但它被禁用,它比浏览器窗口延伸得更远,所以它仍然不能使用。 – GSto 2009-09-28 15:21:07