Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将优化创建涉及伪元素更改的 A/B 测试(:after :before)。
我可以做些什么来优化内部的伪元素样式(让说颜色)。
您最好的选择可能是添加一些变体代码,如下所示:
/* _optimizely_evaluate=force */ /*global $*/ /* _optimizely_evaluate=safe */ $('YOUR_SELECTOR::after').css('color', '#ff0000');
您可以通过单击编辑器右下角的“显示代码”来输入。
关于使用编辑器的信息
这就是它的样子