Html: force display of the browser's scroll bar and browser scroll bar
The browser's scroll bar is not required in some special presentations, so it must be hidden. This article mainly introduces the implementation code for hiding or displaying IE's horizontal or vertical scroll bars, for more information, see:
The related css code is as follows:
// Force display the scroll bar:
Html {overflow: scroll ;}
// Force hide the scroll bar:
Html {overflow: hidden ;}
// Hide the horizontal scroll bar of IE:
Html {overflow-x: hidden ;}
// Hide the vertical scroll bar of IE:
Html {overflow-y: hidden ;}
// Force display the horizontal scroll bar of IE:
Html {overflow-x: scroll ;}
// Force display the vertical scroll bar of IE:
Html {overflow-y: scroll ;}
// Force display the Mozilla horizontal scroll bar:
Html {overflow:-moz-scrollbars-horizontal ;}
// Note: Only the horizontal scroll bar is displayed. That is to say, even if the vertical scroll bar is to be displayed, the vertical scroll bar will not appear.
// Force display Mozilla's vertical scroll bar:
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.
We provide professional Guangzhou website design, Guangzhou website production, mobile website construction, website construction, html5 and other services. If you need it, you can contact us directly!
From Guangzhou Website Design Co., http://www.ratuo.com. Laser extension technology original, if you need to reprint please indicate the link, thank you!