gpt4 book ai didi

html - CSS 中的 SGML "content"

转载 作者:太空宇宙 更新时间:2023-11-04 04:48:36 25 4
gpt4 key购买 nike

是否可以使用 css :before { content:""} 语句输出 SGML 字符?

这不起作用:

span:before { content:"√" }

转义好像也不行。

最佳答案

你是说 SGML/HTML 实体?

不,content 属性不接受标记;在这种情况下,您需要使用实际的 Unicode 字符 √,或其相应的转义序列:

span:before { content:"\221A" }

关于html - CSS 中的 SGML "content",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13928814/

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