gpt4 book ai didi

css - IE 8 不支持 nth-child 我该如何解决这个问题?

转载 作者:技术小花猫 更新时间:2023-10-29 12:10:29 26 4
gpt4 key购买 nike

IE 8 不支持 nth-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;
}

最佳答案

但是 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;
}

关于css - IE 8 不支持 nth-child 我该如何解决这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21279324/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com