Note: This method is only applicable to webkit-based browsers. The browser scroll bar is too wide and ugly, which affects daily development. What should I do? The appearance of the scroll bar consists of two parts: 1. The overall slide of the scroll bar 2. The slider inside the scroll bar slide In CSS, the scroll bar consists of 3 parts name::-webkit-scrollbar //Overall scrollbar stylename::-webkit-scrollbar-track //Scrollbar trackname::-webkit-scrollbar-thumb //Scrollbar internal slider Note: The above three are all pseudo-classes. Please change name to the element name you want to change. For example: change the scroll bar style of the entire page body::-webkit-scrollbar{ //First change the scroll bar width of body: 8px; } body::-webkit-scrollbar-track{//Change the scroll bar track color of the body background: rgb(200, 200, 200); border-radius: 5px; } body::-webkit-scrollbar-thumb{//Finally, change the style of the body's scroll bar slide background: rgb(120, 120, 120); border-radius: 5px; } ◆ The right side shows the scroll bar style after the upper code is changed ◆ You can add background, transparency, border, rounded corners and other attributes to the style to make the browser more beautiful The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. |
<<: Several ways to encrypt and decrypt MySQL (summary)
>>: Tutorial on deploying springboot package in linux environment using docker
Nginx does not support nested if statements, nor ...
Table of contents Linux MySQL 5.5 upgraded to MyS...
Table of contents How to represent the current ti...
Application scenario 1: Domain name-based redirec...
1. CSS3 triangle continues to zoom in special eff...
The various HTML documents of the website are con...
Download and install JDK Step 1: First download t...
Use JS to implement object-oriented methods to ac...
Table of contents 1. Open WeChat Pay 1.1 Affiliat...
Table of contents Preface: What is waterfall layo...
Today we will look at why master-slave delay occu...
Table of contents 1. Trigger Solution 2. Partitio...
(P4) Web standards are composed of a series of sta...
This article uses examples to illustrate the usag...
Mysql-connector-java driver version problem Since...