1, IE6 不支持 display:inline-block; ?
IE6 兼容行內標簽的display:inline-block
不兼容塊標簽 display:inline-block
1. 雙邊距
- 原因:塊元素浮動后方向上有 margin float:left; margin-left loat:right: margin-right
- 解決:display:inline; .left { display:inline; float:left; }
2. IE6子級會把父級撐開
條件:子級大于父級
- 解決: 給父級加 overflow:hidden;
常出現在浮動中
3. 不支持子級 margin負值
解決:子級加 position:relative;