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
This article introduces Docker+Jenkins automatic ...
The office needs Ubuntu system as the Linux devel...
The reason for writing such an article is that on...
Currently, almost all large websites and applicat...
HTML consists of two parts: head and body ** The ...
Table of contents 1. Environmental Installation 2...
Table of contents 1. Recipe Collection 1.1 Projec...
Preface This is a new function I came across rece...
Before reading this article, I hope you have a ba...
Table of contents Preface Implementation ideas Im...
Table of contents 1. What to debug 2. Features of...
This article introduces the CSS scrollbar selecto...
First, the principle of esp8266 publishes message...
The overall architecture of NGINX is characterize...
Introduction As mentioned in the previous article...