Copy code The code is as follows:<div class="content"> <div class="title"></div> <div class="body"> ... </div> <div class="bottom"></div> </div> After searching, I found out that IE stipulates that the height of the div box must be higher than the font height of the box. The default height set on the web page is 12px. Therefore, setting the div height to 10px will inevitably fail. The solution is very simple, just set the font size of the div to 0, so that the height set by the div will work normally and the web page will return to normal. PS: A new solution has been found for this problem, which is to add a sentence at the top of the page code to indicate support for W3C standards. For details, please refer to my other article: Notes on Writing Web Front-end Code |
<<: Example code for implementing the nine-grid layout of dynamic images with CSS
>>: HTML+CSS+JavaScript to achieve list loop scrolling example code
Usually a CSS selector selects from top to bottom...
This article example shares the specific code of ...
Preface scp is the abbreviation of secure copy. s...
A root routing component (the root routing compon...
This article shares the specific code of Vue to s...
1. Install MySQL database ① Download and unzip an...
This article discusses the difficulties and ideas...
Introduction to Vue The current era of big front-...
What are the attributes of the JS script tag: cha...
This article uses an example to describe how to c...
Table of contents Special characters in URLs URL ...
The author has been working on a micro-frontend p...
Recently, when I was working on a project, I was ...
Table of contents need Core Idea Two ways to impl...
background Now the company's projects are dev...