


This is actually not a bug, it is just caused by the different default payment values of each browser. Other sensible browsers are fine, this bug only appears under IE6 IE7
Problem recurrence:
<p>There are no scrollbars on this page in sane browsers</p>html, body, p { margin: 0; padding: 0;}body { overflow: hidden;}p { width: 5000px; height: 5000px;}
It does not take effect under IE6 IE7 (the horizontal and vertical scroll bars under IE6 are still there under IE7)
Reason :Smart browsers (ex. chrome and firefox) will initially pay html{overflow:visible;}
IE6 initial payment html{overflow-x:auto;overflow-y:scroll ;}
IE7 initial payment html{overflow-x:visible;overflow-y:scroll;}
Only the dom root node (that is, the html root node) sets html{overflow: visible;}, the browser will apply the overflow value in the body element to the view area.
For example:
If body{overflow:hidden} is set, a scroll bar will appear, but this scroll bar is not for body, but for html
Only if you set html {overflow:visible;} body{overflow value} can be passed to html{}
In this way, the value of html becomes {overflow:hidden}, ok there is no scroll bar
This way It is clear that it is not a bug, but a problem caused by different initial values in browsers.
Solution:
html, body, p { margin: 0; padding: 0;}html { overflow: visible;}body { overflow: hidden;}p { width: 5000px; height: 5000px;}
This item can be organized into your own reset file
via Feichang'blog original address

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version
Visual web development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
