Force display of the scroll bar:
The code is as follows: |
Copy code |
Html {overflow: scroll ;} |
Force hide the scroll bar:
The code is as follows: |
Copy code |
Html {overflow: hidden ;} |
Hide the horizontal scroll bar of IE:
The code is as follows: |
Copy code |
Html {overflow-x: hidden ;} |
Hide the vertical scroll bar of IE:
The code is as follows: |
Copy code |
Html {overflow-y: hidden ;} |
Forcibly display the horizontal scroll bar of IE:
The code is as follows: |
Copy code |
Html {overflow-x: scroll ;} |
Forcibly display the vertical scroll bar of IE:
The code is as follows: |
Copy code |
Html {overflow-y: scroll ;} |
Force Display of Mozilla horizontal scroll bar:
The code is as follows: |
Copy code |
Html {overflow:-moz-scrollbars-horizontal ;} |
Note: Only the horizontal scroll bar is forcibly displayed. That is to say, even if the vertical scroll bar needs to be displayed, the vertical scroll bar will not appear.
Force Display of Mozilla's vertical scroll bar:
The code is as follows: |
Copy code |
Html {overflow:-moz-scrollbars-vertical ;} |
Note: only the vertical scroll bar is displayed. That is to say, the horizontal scroll bar does not appear even if the horizontal scroll bar needs to be displayed.
So many of us will have noticed an html. All the hidden browsers that scroll are defined by html.