首页 / 知识
视频背景自定义滚动条制作
2023-04-11 16:02:00

视频背景自定义滚动条制作代码 <!doctype html> <html> <head> <meta charset="utf-8"> <title>dhgsahdls;asa</title> <script type="text/javascript" src="http://7fvk4m.com1.z0.glb.clouddn.com/roll.js"></script> <style> .ss{height:100%/*inherit*/; overflow: hidden; position: fixed; top: 0; left:0; width: 100%; } .shade{ width:100%; height:100%; position:fixed; top:0; left:0; z-index:1; background:url(ss.webp) repeat;} .sp{ visibility: visible; width: 115%; position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%);} .con{height:2000px; position:relative;} .banner{background:#fff; height:1000px;} .content1{ width:1000px; height:1000px; margin:0 auto; background:rgba(0,0,0,.5)}
/**滚动条**/ body{margin: 0px; padding: 0px; background: #222; position: absolute; width: 100%; height: 100%; pointer: default; overflow:hidden; } #screen { position: absolute; left: 0; height: 100%; top: 0; width: 100%; overflow: auto; color: #fff; }
#screen2 { position: absolute; left: 20%; height: 30%; width: 60%; top: 60%; overflow: auto; background: #111; color: #fff; } .content { position:relative; font-size: 0.8em; font-family: verdana; color: #fff; padding: 1em; height: 100%; } a { text-decoration: none; color:#ff8000; } a:hover { text-decoration: none; background:#ff8000; color:#ffffff; } a:visited { text-decoration: none; color:#ff8000; } a:visited:hover { text-decoration: none; background:#ff8000; color:#ffffff; } /**滚动条的样式**/ .cds_scrollbar { position: absolute; background: #555 url(/divgundong/12476505130.webp); right: 0px; cursor: pointer; } /**选中的样式**/ .cds_scrollbar_over { background: #aaa url(/divgundong/12476497481.webp); } /**点击的样式拖动**/ .cds_scrollbar_pushed { background: #fff url(/divgundong/12476497480.webp); } /**未经过的样式**/ .cds_track { position: absolute; background: #222 url(/divgundong/12476497482.webp); right: -1px; top: 0px; height: 100%; cursor: pointer; } /**上箭头的样式**/ .cds_up { position: absolute; background: #f60 url(/divgundong/12476497483.webp); right: 0px; top: 0px; cursor: pointer; } /**下箭头的样式**/ .cds_down { position: absolute; background: #f60 url(/divgundong/12476497483.webp); right: 0px; bottom: 0px; cursor: pointer; }
</style> </head>
<body> <div class="ss"> <div class="shade"></div>
<video src="http://qiniucdn.activity.sonkwo.com/20170117/video/00_1_2.mp4" autoplay loop class="sp"> <source src="http://qiniucdn.activity.sonkwo.com/20170117/video/00_1_2.mp4" type="video/mp4"> </video> </div> <div class="con" id="screen"> <div class="banner"></div> <div class="content1"> djsalk' </div> </div> <div > </div>
</div> </body> </html> |
最新内容
相关内容
python如何读取列表中元素的位置?
python如何读取列表中元素的位置?,位置,数据,异常,培训,字符串,元素,索引,方法,示例,结果,python读取列表中元素位置的方法:1、使用index()方python终端输出乱码怎么解决?
python终端输出乱码怎么解决?,代码,系统,一致,培训,地方,工作,终端,文件,乱码,声明,在命令行终端上工作时,经常会碰到一个头疼的问题就是中文文本处理用c还是用python
文本处理用c还是用python,位置,培训,包装,对比,字符串,函数,文本,语言,字符,效率,文本处理python与c的对比:如下c++语言:C++语言实现C++中没有python支持r语言吗?
python支持r语言吗?,代码,名称,培训,官网,第一,语言,对象,字符串,方法,后缀,python中可以支持r语言。python提供了一个模块rpy2,可以较好地完python3如何引入模块?
python3如何引入模块?,系统,位置,培训,标准,模块,方法,成员,路径,下面,别名,使用Python进行编程时,有些功能没必须自己实现,可以借助Python现有python使用matplotlib绘图怎么在线
python使用matplotlib绘图怎么在线上标注?,地方,培训,坐标轴,图像,范围,画图,示例,注释,文字描述,以上,python画图常用标注包含,坐标轴的值和python如何replace(替换)多个字符?
python如何replace(替换)多个字符?,培训,字符,字符串,方法,正则,括号,数组,函数,定义,以上,python中使用replace替换多个字符的方法:1、使用repython3中怎么编写类?
python3中怎么编写类?,培训,方式,步骤,关键字,以上,过程,方法,更多,内容,python中创建类的方法:方式一:利用class关键字classChinese(object):python可以编写win程序吗?
python可以编写win程序吗?,培训,程序,文件,内容,文件夹,模块,命令,实际,下面,根据,python可以编写win程序。win程序的格式是exe,下面我们就来python如何导入txt数据库?
python如何导入txt数据库?,数据,时间,代码,培训,数据库,函数,读数,数据表,以上,方法,python将TXT数据导入数据库的方法代码如下:#!/usr/bin/pypython怎么使用文件夹下的脚本?
python怎么使用文件夹下的脚本?,工作,培训,文件夹,脚本,文件,所在,方法,示例,路径,以上,python中使用文件夹下脚本的方法:将当前的工作目录(即python的三角函数在哪?
python的三角函数在哪?,标准,培训,函数,反函数,方法,下面,以上,更多,内容,python中的三角函数在python的标准库math中,math已经包含在你的标