我一直在使用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