Html: force display of the browser's scroll bar and browser scroll bar

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.