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
This article shares with you how to import Excel ...
/******************** * Application of linked lis...
A common development need is that we want to coll...
Table of contents 1. Get a random Boolean value (...
I believe everyone has had this feeling: watching ...
In order to speed up the parsing of the website, ...
The docker exec command can execute commands in a...
Table of contents Preface NULL in MySQL 2 NULL oc...
Unzip the file into a directory This is the direc...
I came into contact with CSS a long time ago, but...
This article mainly introduces 6 solutions to the...
Phenomenon The system could compile the Linux sys...
1. Command Introduction The userdel (user delete)...
background When performing a SQL query, I tried t...
This article example shares the specific code of ...