gpt4 book ai didi

sifr - sIFR是否支持像:first-child?这样的伪元素

转载 作者:行者123 更新时间:2023-11-28 15:02:30 24 4
gpt4 key购买 nike

我的 sifr-config.js 文件中有以下内容:

sIFR.replace(avenir_book, {
selector: 'p:first-child',
css: '.sIFR-root { color: #782221; font-size:22px; }',
wmode: 'transparent'
});

但它不起作用。我已经通过在我的普通样式表中测试相同的 CSS 来验证它是否有效。 sIFR是不理解这个伪元素,还是需要用特殊的方式调用?

最佳答案

假设您使用的是 sIFR 3,不支持 :first-child,如 this page 所示.但是,可以使 sIFR 与 jQuery 兼容,阅读 more here .

Steps to replace parseSelector with jQuery:

1 - Make sure you include the jQuery JavaScript file.

2 - Remove all of the parseSelector code at the bottom of sifr.js

3 - Add the following line:

var parseSelector = $;

关于sifr - sIFR是否支持像:first-child?这样的伪元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1515727/

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