How to hide a scroll bar? IE removes the HTML code of the scroll bar

Source: Internet
Author: User

A page is created, which is the same size as the desktop resolution, but a scroll bar is displayed in IE full screen (F11), but Firefox does not. How can I remove the IE scroll bar? In fact, there is a property that can be solved.

Method 1: directly add the scroll attribute to the body.

The Code is as follows:

<Body scroll = "no">

Method 2: Use the style sheet overflow

The Code is as follows:

HTML {overflow-x: hidden ;}

Under the xhtml1-transitional.dtd standard, it is not to take the Body as the container, but the HTML Tag, so it is useless to add the style sheet to the HTML Tag.

The html transitional standard can be used for the Body container. The Code is as follows:

<Body style = "overflow-x: hidden">

In this way, the IE scroll bar can be removed.

Related Article

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.