Home >Web Front-end >HTML Tutorial >There is a gray border on the outermost side of the webpage in IE browser and I don't know how to remove it? _html/css_WEB-ITnose
When a blank webpage has the above statement, there is a recessed border under IE8. How to remove this border? This statement must be included
There is no way to remove this, it is unique to browsers.
No, 555, a lot of things have been changed, but this is the only one that can’t be changed. . . .
The html tag in IE browser has a 2-layer border embedded effect by default, with 2px borders on the top, bottom, left and right, so the height and width of the html obtained under IE will be 4 larger than the height and width of the document or window. pixels. This border can be removed by setting the border:0 of html, but this setting is only effective when the document declaration meets certain conditions.
1. Do not set a document declaration
2. Set in this form, it is also the only form with a document declaration , other version document statements have no effect.
There is another issue that needs to be noted. When the above two methods are applied, the default border of the IE browser can be removed, but at this time the overflow-y attribute of the body tag is set to scroll by default by the browser and needs to be manually changed to auto or hidden, otherwise there will be an empty slot for the scroll bar at the right end of the page.