In HTML pages, we sometimes need to automatically display a scroll bar after the content in a div exceeds the limit. We can set it like this: Copy code The code is as follows:<div class="classlist"> <div class="autoScroll"> <asp:RadioButtonList ID="rblClasses" runat="server" DataTextField="className" DataValueField="classID" ForeColor="#FF4040"> </asp:RadioButtonList> <asp:ImageButton ID="imgSure" runat="server" ImageUrl="~/images/c_sure.jpg" /> <asp:ImageButton ID="imgClose" runat="server" ImageUrl="~/images/c_close.jpg" /> </div> </div> Then, set the style like this: Copy code The code is as follows:<style type="text/css"> .classlist { width: 300px; height: 20px; } .autoScroll { width:300px; height:100px; overflow:auto; } #rblClasses { margin-left: 20px; } </style> After setting, when the content displayed in the radiobutton exceeds the outermost div, a scroll bar will be automatically displayed, that is, the nested div |
<<: Initial summary of the beginner's website building tutorial
>>: Detailed explanation of how to use eslint in vue
The role of the a tag pseudo-class: ":link&qu...
Table of contents First of all, you need to know ...
A database index is a data structure whose purpos...
The decompressed version of MYSQL is installed 1:...
This tag is not part of HTML3.2 and only supports ...
In Vue, we can define (register) local components...
Often when building a SPA, you will need to prote...
Software Download Download software link: https:/...
Table of contents Oracle Isolation Levels MySQL I...
Table of contents Data volume Anonymous and named...
Use v-model to bind the paging information object...
1. Request answer interface 2. Determine whether ...
Table of contents Design scenario Technical Point...
Before talking about OO, design patterns, and the ...
Nginx is configured with the same domain name, wh...