CSS adds scrolling to div and hides the scroll bar. The specific code is as follows: In html <div class="box"> <div>The following content will scroll separately</div> <div class="scroll"> <div class="content"> <p>1111111111111111</p> <p>22222222222222</p> <p>333333333333333</p> <p>444444444444444</p> <p>1111111111111111</p> <p>22222222222222</p> <p>333333333333333</p> <p>444444444444444</p> </div> </div> </div> CSS part <style> div{ font-size: 15px; margin-bottom: 20px; } .content{ height: 300px;v // The height of the scrolling part must be set background-color: cadetblue; color: antiquewhite; overflow-x: hidden; /*x-axis scrolling is prohibited*/ overflow-y: scroll;/*y-axis scroll*/ } .content::-webkit-scrollbar { display: none;/*Hide scroll bar*/ } p{ margin-bottom: 30px; font-size: 17px; color: #333; } </style> Summarize The above is the CSS that I introduced to you to add scrolling to div and hide the scroll bar. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
>>: Common functions of MySQL basics
Copy code The code is as follows: <!DOCTYPE ht...
The following graph shows how time-consuming it is...
Official website address: https://dev.mysql.com/d...
As the Internet era becomes more mature, the deve...
Table of contents introduce Key Features Effect d...
This article example shares the specific code for...
Table of contents 1. beforeCreate & created 2...
When I configured mysql, I set the default storag...
Page replacement algorithm: The essence is to mak...
Recently, when I was sorting out the details of d...
Table of contents question analyze solve Replace ...
Getting Started with JavaScript JavaScript is a l...
The Explain command is the first recommended comm...
sort Sort the contents of a text file Usage: sort...
Preface: In the previous article, we mainly intro...