Use CSS to modify scroll bars Copy code The code is as follows: <textarea style="overflow-x:hidden"> </textarea> No vertical scroll bar Copy code The code is as follows: <textarea style="overflow-y:hidden"> </textarea> No scroll bars Copy code The code is as follows: <textarea style="overflow-x:hidden;overflow-y:hidden"> </textarea> or Copy code The code is as follows: <textarea style="overflow:hidden"> </textarea> 3. Set the color of the window scroll bar Set the color of the window scroll bar to red <body style="scrollbar-base-color:red"> scrollbar-base-color sets the basic color. Generally, you only need to set this one property to change the scroll bar color. Add a little special effect: Copy code The code is as follows: <body style="scrollbar-arrow-color:yellow;scrollbar-base-color:lightsalmon"> 4. When setting other elements, it is basically the same. It is best to define a class in the style sheet file so that you can reuse it. Copy code The code is as follows:.coolscrollbar { scrollbar-arrow-color:yellow; scrollbar-base-color:lightsalmon; } Add the above statement to the style sheet file or the <style> </style> of the HTML header, and then use <textarea class="coolscrollbar"> </textarea> |
<<: How to install docker under centos and remotely publish docker in springboot
Table of contents 1. Create a redis docker base i...
1. Download Download mysql-5.7.19-linux-glibc2.12...
Table of contents 1. Startup management of source...
Table of contents What is Docker Client-side Dock...
1 Overview System centos8, use httpd to build a l...
The Docker Hub we used earlier is provided by Doc...
Since PostgreSQL is compiled and installed, you n...
When writing a Dockerfile, include an entrypoint ...
Table of contents 1. Function debounce 1. What is...
1. Software Download MySQL download and installat...
Sometimes you may need to modify or add exposed p...
There are many tools, components and programs for...
To solve the problem that Deepin cannot start Goo...
Table of contents How to represent the current ti...
Table of contents 1. Project construction 2: Dire...