风格滚动条溢出-Y

2022-05-08

以下示例是关于Css中包含风格滚动条溢出-Y用法的示例代码,想了解风格滚动条溢出-Y的具体用法?风格滚动条溢出-Y怎么用?风格滚动条溢出-Y使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:style scrollbar overflow-y源码类型:Css
.large-2 {
  margin-left: 30px;
  float: left;
  height: 300px;
  overflow-y: scroll;
  margin-bottom: 25px;
  width: 100px;
  background: #ccc;
}

.force-overflow {
  min-height: 450px;
}

.large-2::-webkit-scrollbar-track {
  border: 1px solid #000;
  padding: 2px 0;
  background-color: #404040;
}

.large-2::-webkit-scrollbar {
  width: 10px;
}

.large-2::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #737272;
  border: 1px solid #000;
}

本文地址:https://www.itbaoku.cn/snippets/785457.html