為什么滾動(dòng)條不能隱藏
<!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://idcbgp.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è)置了打開的頁(yè)面的寬度和高度,所以打開的頁(yè)面不是全屏的,只能顯示一部分頁(yè)面,所以瀏覽器就出現(xiàn)那個(gè)滾動(dòng)條了,可以通過(guò)設(shè)置目標(biāo)頁(yè)面的<body scroll=no>屬性來(lái)解決似乎(認(rèn)真臉)