@3dwayfinder/scrollarea 中文文档教程
scrollarea
支持触摸、鼠标和滚轮的 vanilla JS scrollarea
Usage
let area = document.getElementById("scrollarea");
let sa = new ScrollArea(area);
CSS
使容器固定高度,隐藏溢出。 以及根据需要大小的可滚动容器。 要显示滚动条,请添加一些样式
.sa-content-longer .sa-scrollbar {
width: 1em;
background-color: lightblue;
}
.sa-content-longer .sa-bar {
width: 1em;
background-color: antiquewhite;
}
scrollarea
A vanilla JS scrollarea that supports touch, mouse and scrollwheel
Usage
let area = document.getElementById("scrollarea");
let sa = new ScrollArea(area);
CSS
Make the container fixed height, overflow hidden. And the scrollable container as big as needed. To show a scrollbar add some styles to
.sa-content-longer .sa-scrollbar {
width: 1em;
background-color: lightblue;
}
.sa-content-longer .sa-bar {
width: 1em;
background-color: antiquewhite;
}
更多
你可能也喜欢
- 20160301_nodejs 中文文档教程
- 2p-serialize-core 中文文档教程
- @00-team/utils 中文文档教程
- @0xcert/ethereum-proxy-contracts 中文文档教程
- @100tal-seg/seg-vue-material-template 中文文档教程
- @33cn/chain33-rpc-api 中文文档教程
- @4a/koa-api-router 中文文档教程
- @7util/logger 中文文档教程
- @a1motion/aws-cloudfront-sign 中文文档教程
- @aacassandra/jquery_upload_preview 中文文档教程