Get the App
SLTechnology News&Howtos  ›  Development  › 

How to make a custom scroll bar for HTML video background

Shulou Source: shulou.com Published: 2022-06-01 03:29:37 10月19日 Update

This article mainly introduces the relevant knowledge of "how to make a custom scroll bar for HTML video background". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to make a custom scroll bar for HTML video background" can help you solve the problem.

Video background custom scroll bar making code

Dhgsahdls;asa

.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 (0B0B0D0B0J0.5)}

/ * * Scroll bar * /

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

}

/ * the style of the scroll bar * /

.cds _ scrollbar {

Position: absolute

Background: # 555 url (/ divgundong/12476505130.gif)

Right: 0px

Cursor: pointer

}

/ * selected style * /

.cds _ scrollbar_over {

Background: # aaa url (/ divgundong/12476497481.gif)

}

/ * * Click style drag * * /

.cds _ scrollbar_pushed {

Background: # fff url (/ divgundong/12476497480.gif)

}

/ * unpassed style * /

.cds _ track {

Position: absolute

Background: # 222 url (/ divgundong/12476497482.gif)

Right:-1px

Top: 0px

Height: 100%

Cursor: pointer

}

/ * the style of the up arrow * /

.cds _ up {

Position: absolute

Background: # f60 url (/ divgundong/12476497483.gif)

Right: 0px

Top: 0px

Cursor: pointer

}

/ * style of the down arrow * /

.cds _ down {

Position: absolute

Background: # f60 url (/ divgundong/12476497483.gif)

Right: 0px

Bottom: 0px

Cursor: pointer

}

Djsalk'

This is the end of the content about "how to make a custom scroll bar for HTML video background". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Style background video production knowledge arrowhead industry different practical code content practical practical article method more case knowledge point article information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Microsoft Huawei vpn Linux