找回密码
 立即注册→加入我们

QQ登录

只需一步,快速开始

搜索
热搜: 下载 VB C 实现 编写
查看: 2177|回复: 3

CodePen上看到的一个示例

[复制链接]
发表于 2018-12-9 00:10:17 | 显示全部楼层 |阅读模式

欢迎访问技术宅的结界,请注册或者登录吧。

您需要 登录 才可以下载或查看,没有账号?立即注册→加入我们

×
本帖最后由 元始天尊 于 2018-12-9 00:52 编辑

https://codepen.io/ge1doot/pen/LkdOwj
https://codepen.io/akm2/pen/rHIsa
https://codepen.io/dissimulate/pen/KrAwx
回复

使用道具 举报

 楼主| 发表于 2018-12-9 00:18:18 | 显示全部楼层
本帖最后由 元始天尊 于 2018-12-13 21:51 编辑

回复 赞! 靠!

使用道具 举报

发表于 2018-12-9 09:55:50 | 显示全部楼层
啊,好好玩
回复

使用道具 举报

发表于 2022-7-30 18:02:29 | 显示全部楼层
Hide scroll bar when not needed
there is no one dedicated CSS rule to Hide scroll bar when not needed. However, this is possible with a few browser-specific CSS rules. To hide the scrollbar and keep scrolling functionality, apply the following CSS to the body (for the entire page) or a specific element.

How to Hide the Scrollbar in CSS (and Prevent Scrolling)
To hide the scrollbar and disable scrolling, we can use the CSS overflow property. This property determines what to do with content that extends beyond the boundaries of its container.
  1. /* hide scrollbar and prevent scrolling */
  2. #div-1 { overflow: hidden; }
  3. #div-2 { overflow: visible; }

  4. /* other styling */
  5. div {
  6.   border: solid 5px black;
  7.   border-radius: 5px;
  8.   height: 100px;
  9.   margin: 20px;
  10.   width: 300px;
  11. }

  12. * {
  13.   background-color: #EAF0F6;
  14.   color: #2D3E50;
  15.   font-family: 'Avenir';
  16. }
复制代码

To hide the vertical scrollbar and prevent vertical scrolling, use overflow-y: hidden like so:
  1. /* hide vertical scrollbar and prevent vertical scrolling */

  2. div {
  3.   overflow-y: hidden;  

  4.   /* other styling */
  5.   border: solid 5px black;
  6.   border-radius: 5px;
  7.   height: 300px;
  8.   width: 300px;
  9. }

  10. img { height: 500px; }

  11. /* other styling */
  12. * {
  13.   background-color: #EAF0F6;
  14.   color: #2D3E50;
  15.   font-family: 'Avenir';
  16. }
复制代码




回复 赞! 靠!

使用道具 举报

本版积分规则

QQ|Archiver|小黑屋|技术宅的结界 ( 滇ICP备16008837号 )|网站地图

GMT+8, 2024-11-21 20:37 , Processed in 0.030305 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表