2022
02-12
02-12
js实现水平和竖直滑动条
最近在做练手项目时候,需要用到滑动条,所以就稍微研究了一下。首先来看水平滑动条,效果图如下:代码如下:<html><head><metacharset="UTF-8"><title>水平滑动条</title><style>*{margin:0;padding:0;}.scroll{margin:100px;width:500px;height:5px;background:#ccc;position:relative;}.bar{width:10px;height:20px;background:#369;positi...
继续阅读 >