IE 8不支持n-child如何解决这个问题?
#hm-top div:nth-child(1) h3 {
color: #63c2ff;
width: 300px;
padding: 115px 0 0 0;
background: url(images/trade.png) no-repeat center top;
}
Run Code Online (Sandbox Code Playgroud)
但IE8支持:first-child相当于:nth-child(1):
#hm-top div:first-child h3 {
color: #63c2ff;
width: 300px;
padding: 115px 0 0 0;
background: url(images/trade.png) no-repeat center top;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
105 次 |
| 最近记录: |