首页 > 开发 > CSS > 正文

IE 元素默认高度研究

2024-07-11 08:26:07
字体:
来源:转载
供稿:网友
序号 HTML IE<=7 CSS样式 表现: 实际高度 (px) 说明
1 <div></div>
0 啥事没有 2 <div></div>
width:100px;                                    
15 触发haslayout 3 <div></div>
height:1px;                                    
0 4 <div></div>
overflow:hidden;                                    
15 触发haslayout   5 <div></div>
width:100px; height:0px;                                    
0 6 <div></div>
width:100px; line-height:0px                                    
15 7 <div></div>
width:100px; font-size:0;                                    
2 8 <div></div>
width:100px; height:0px; line-height:0px;                                    
0 9 <div></div>
width:100px; height:0px; font-size:0;            
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表