這篇文章主要介紹“HTML視頻背景自定義滾動(dòng)條如何制作”的相關(guān)知識(shí),小編通過(guò)實(shí)際案例向大家展示操作過(guò)程,操作方法簡(jiǎn)單快捷,實(shí)用性強(qiáng),希望這篇“HTML視頻背景自定義滾動(dòng)條如何制作”文章能幫助大家解決問(wèn)題。
創(chuàng)新互聯(lián)建站堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:網(wǎng)站建設(shè)、成都網(wǎng)站制作、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿(mǎn)足客戶(hù)于互聯(lián)網(wǎng)時(shí)代的海豐網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!
視頻背景自定義滾動(dòng)條制作代碼
.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)}
/**滾動(dòng)條**/
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;
}
/**滾動(dòng)條的樣式**/
.cds_scrollbar {
position: absolute;
background: #555 url(/divgundong/12476505130.gif);
right: 0px;
cursor: pointer;
}
/**選中的樣式**/
.cds_scrollbar_over {
background: #aaa url(/divgundong/12476497481.gif);
}
/**點(diǎn)擊的樣式拖動(dòng)**/
.cds_scrollbar_pushed {
background: #fff url(/divgundong/12476497480.gif);
}
/**未經(jīng)過(guò)的樣式**/
.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;
}
djsalk'
關(guān)于“HTML視頻背景自定義滾動(dòng)條如何制作”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí),可以關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,小編每天都會(huì)為大家更新不同的知識(shí)點(diǎn)。