為什么滾動條不能隱藏
<!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://yifanck.cn','_blank','height=600,width=400,top=100,left=0,scrollbars=no');
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開新窗口!" / >
</body>
</html>
2018-11-02
應(yīng)該是你設(shè)置了打開的頁面的寬度和高度,所以打開的頁面不是全屏的,只能顯示一部分頁面,所以瀏覽器就出現(xiàn)那個滾動條了,可以通過設(shè)置目標(biāo)頁面的<body scroll=no>屬性來解決似乎(認(rèn)真臉)