Today to make div height control when found ie control div height is very small when invalid, deliberately checked the relevant articles.
Finally, with the solution, refer to the following article:
If you want to make a line that is less than 12PX (approx.), it will show up above the actual height in IE, see below.
Copy Code code as follows:
<style>
. line{
Background: #CCCCCC;
height:6px;
}</style>
<div class= "line" ></div>
Can be seen that the actual height of more than 6PX, which is also a bug bar ie. Here are three ways to solve this problem, and the first method is recommended.
1:
Copy Code code as follows:
<style>
. line11{
Background: #CCCCCC;
height:6px;
Overflow:hidden;
}</style>
<div class= "Line11" ></div>
2. Between div to add a space note: IE5.0 invalid
Copy Code code as follows:
<style>
. line12{
Background: #336699;
line-height:6px;
}</style>
<div class= "Line12" > </div>
3:
Copy Code code as follows:
<style>
.line13{
background: #CC0000;
height: 6px;
font-size: 1px;
}</style>
<div class = "Line13" ></div>