我一直在使用2个按钮,打开2个新的窗口:打开新窗口
<input id="Corner" type="button" value="Corner" onclick="corner()"/>
<input id="Center" type="button" value="Center" onclick="center()"/>
角窗应该从左上角打开一个新的窗口,在整个屏幕扩大,这是我不能正常工作的功能:
function corner() {
window.open("https://www.facebook.com/", "New", "height=screen.height(),width=screen.width()");
}
首先为什么不高得到screen.height()?
中心按钮应该在中心打开一个新窗口,然后在所有4个方向上展开窗口以覆盖所有屏幕。我不知道如何做到这一点。
function center() {
//...?
}
请提供您的'中心()'函数了。 – showdev 2014-10-07 21:25:03
@showdev我不知道如何做到这一点,中心()是空的 – Alpha2k 2014-10-07 21:26:21
你真的想要某种动画吗? – sinisake 2014-10-07 21:27:33