CSS隱藏捲軸

來源:互聯網
上載者:User
搜了一些資料說 <boby>裡加入scroll="no",可隱藏捲軸;
在<boby>裡加入style="overflow-x:hidden",可隱藏水平捲軸;加入style="overflow-y:hidden",可隱藏垂直捲軸。在我的頁面上就是不行, 沒折, 繼續尋找. 看到一個哥們介紹了這麼一句 在頁面添加:<style>
html { overflow-x:hidden; //隱藏水平捲軸
overflow-y:hidden;//隱藏垂直捲軸
}
</style> 確實是行,和大家分享.
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.