gpt4 book ai didi

html - 选择器后的 IE8 CSS

转载 作者:太空宇宙 更新时间:2023-11-04 15:18:31 24 4
gpt4 key购买 nike

CSS

.main blockquote p:first-child:before {
content: '“';
position: absolute;
top: 7px;
left: 0;
}

.main blockquote p:last-child:after {
content: '”';
float: right;
position: absolute;
bottom: -9px;
right: 7px;
}

代码

<blockquote>
<p>A quote about many wonderful things...</p>
</blockquote>

这适用于大多数浏览器...在 IE8 中,我只得到前面的引号...我错过了什么?

最佳答案

last-child 不支持 ie8。你必须使用 jquery 来这样做

关于html - 选择器后的 IE8 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11988696/

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