gpt4 book ai didi

css - 伪元素 :after not working in IE9 with content :"Γû╝"

转载 作者:行者123 更新时间:2023-11-28 10:03:59 24 4
gpt4 key购买 nike

大家好,我添加了content: "▼"在 CSS3 中 :after伪元素,它在 IE9 中不能正常工作。

显示"Γû╝"像这个符号。我添加了 <meta>正确标记。

我的CSS

#get-in {
position: relative;
margin-top: 15px;
margin-right: 0px;
background-color: #bfbfbf;
border-radius: 4px;
border: 1px solid #b7b7b7;
width: 74px;
line-height: 26px;
height: 26px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-indent: 15px;
/*text-align: center;*/
}
#get-in:after {
content: "▼";
font-size: 12px;
padding: 0 6px;
position: absolute;
right: 0;
top: 0;
}

是我的代码有问题还是 IE9 不支持..?有什么解决办法吗?

最佳答案

CSS 文件的字符编码没有正确声明。首先,确保它实际上是 UTF-8 编码的并且在 HTTP header 中声明为 UTF-8 编码。您还可以将 @charset "utf-8" 放在 CSS 文件的开头。

关于css - 伪元素 :after not working in IE9 with content :"Γû╝",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18895141/

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