HTML视频背景自定义滚动条如何制作

这篇文章主要介绍“HTML视频背景自定义滚动条如何制作”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“HTML视频背景自定义滚动条如何制作”文章能帮助大家解决问题。

创新互联建站坚持“要么做到,要么别承诺”的工作理念,服务领域包括:网站建设、成都网站制作、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的海丰网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

视频背景自定义滚动条制作代码

<!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.png) 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.gif);

                   right: 0px;

                   cursor: pointer;

         }

/**选中的样式**/

.cds_scrollbar_over {

                   background: #aaa url(/divgundong/12476497481.gif);

         }

/**点击的样式拖动**/

.cds_scrollbar_pushed {

                   background: #fff url(/divgundong/12476497480.gif);

         }

/**未经过的样式**/

.cds_track {

                   position: absolute;

                   background: #222 url(/divgundong/12476497482.gif);

                   right: -1px;

                   top: 0px;

                   height: 100%;

                   cursor: pointer;

         }

/**上箭头的样式**/

.cds_up {

                   position: absolute;

                   background: #f60 url(/divgundong/12476497483.gif);

                   right: 0px;

                   top: 0px;

                   cursor: pointer;

         }

/**下箭头的样式**/

.cds_down {

                   position: absolute;

                   background: #f60 url(/divgundong/12476497483.gif);

                   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>

关于“HTML视频背景自定义滚动条如何制作”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注创新互联行业资讯频道,小编每天都会为大家更新不同的知识点。

本文标题:HTML视频背景自定义滚动条如何制作
文章出自:https://www.cdcxhl.com/article18/jsdpdp.html

成都网站建设公司_创新互联,为您提供网站制作标签优化动态网站面包屑导航外贸建站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

绵阳服务器托管