


Today a customer called and said that he updated his IE browser to IE8.0 and opened the website he just made and found that it was misaligned. It was clearly centered on the left, but Xiao Cai had encountered the same problem before. , so I'm not worried at all. Generally, writing DIV CSS has been basically tested with IE6.0, IE7.0 and Firefox. Because many people use it, no misalignment occurs. When I use IE8 to open the website, I find that the misalignment is very serious, including the homepage and list. Pages, article pages, etc. are all seriously misaligned.
I didn’t dare to use IE8.0 to open the website for the next two days. I really hope that not too many people are using IE8 now, and not too many people will find the website misalignment problem. Then I thought, escaping is not an option. After all, IE8 will only be used by more and more people, and it cannot be used by fewer and fewer people. I started researching the reasons and solutions for website misalignment under IE8.
Because the website used to be normal under IE7, and then it was misaligned under IE6, and it was normalized by changing the code. Then I thought, if it was misaligned under IE8, I should change the code to avoid the website misalignment. question. This can not but be said to be a troublesome matter. After all, it is a challenge for too many novice webmasters. In fact, it is not necessary. The IE8 browser itself has a very good function to solve the problem of website misalignment.
A solution on the client side
In fact, the solution is very simple. Use IE8 browser to open your website. If you find misalignment problems, please don’t panic. On the menu bar, open the "Tools" option, find "Compatibility View" in the drop-down menu, check it, and then check to see if the website is no longer misaligned.
The second website solves it by itself
IE8 has margin:0 auto; this CSS seems to be no longer useful, the page cannot be centered, I will come back in the afternoon and see if there is any way to center it, the front end of Pacific Ocean is also Said that their company ignored the existence of IE8 and the test was still the previous version.
The reason is found. I wrote margin:0 auto; in the body tag. It can be centered in IE7 and below, but not IE8. The solution is to write this code in a large div frame.
Baidu search information:
Program code
in What works in all browsers: What works in all browsers: What works in all browsers: <br>

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

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

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

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

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 <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 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

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

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.

SublimeText3 Linux new version
SublimeText3 Linux latest version

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

Atom editor mac version download
The most popular open source editor

SublimeText3 Mac version
God-level code editing software (SublimeText3)
