Recently, we found that some customers’ websites are not displayed properly in IE8 browser. The main problem is that the website pages made with css div cannot be centered. Margin:0 auto; This CSS seems to be no longer useful for IE8, and the page cannot be centered. After careful analysis, the technical staff of our own planning company finally found a way to center the webpage under IE8:
Write 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.
Program code