IE8 下 `background: url(...) 0 29px no-repeat #81afd5` 無效,背景圖與顏色皆不顯示。
IE8 對 `background` 簡寫屬性的**值順序**與**空格**極其敏感:
/* ❌ IE8 失效:顏色在最後,0 前無空格 */
background: url(../images/bg.png)0 29px no-repeat #81afd5;
/* ✅ IE8 生效:顏色前置,標準空格分隔 */
background: #81afd5 url(../images/bg.png) no-repeat 0 29px;
background-color: #81afd5;
background-image: url(../images/bg.png);
background-repeat: no-repeat;
background-position: 0 29px;
| 屬性 | 問題 | 修正 |
|---|---|---|
| rgba() | 不支援 | 用漸變濾鏡或十六進位 + Alpha |
| box-sizing | 不支援 | 需手動計算寬高或用表格布局 |
| media queries | 不支援 | Respond.js Polyfill 或優雅降級 |
| inline-block | 僅對天生 inline 元素生效 | `display:inline-block; *display:inline; *zoom:1;` |