若希望隱藏頁面的捲軸,可使用 overflow: hidden:
html { overflow: hidden; } body { overflow: hidden; }
在 IE6、IE7 下需對 html 設定才有效;而在其他標準瀏覽器中,設定 body 即可。