我正在使用 javascript 的 window.open 在用户单击指定宽度和高度 (760x581) 时打开浏览器窗口,这在 Internet Explorer、Safari 和 Firefox 上正常工作,但 Google Chrome 给我带来了问题。在其他浏览器中,高度被正确地用作内容的高度,但在 Google Chrome 中,它使实际浏览器窗口的高度为 581 像素而不是内容。有没有办法来解决这个问题?
<a href="http://domain.com/example.php" onclick="window.open('http://domain.com/example.php', '', 'width=760, height=581, top=15, left=15, toolbar=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0, location=0, directories=0, status=1, titlebar=1, personalbar=0');return false">click here</a>