為什么我的窗口設置沒有用?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
? function Wopen(){
? ? ? window.open('http://imooc.com','_blank','width=600,height=400,top=100,left=0')
}?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點擊我,打開新窗口!" / >
</body>
</html>
2017-09-09
其實是有用的,你可以運行一下試試,只不過它針對的是你的顯示器顯示的而已。
你可以看下,我把寬設置成600和1000的長度是不一樣的,他的設置是設置的瀏覽器的樣式,并不是里面的內容的樣式
2018-07-19
你把你的單引號都換成雙引號,文檔里面的單引號對我們不起作用
2017-09-08
window.open("http://imooc.com","_blank","width=300px,height=300px,top=100,left=0");
2017-09-04
基本沒有問題,換個瀏覽器試試。