gpt4 book ai didi

html - cufontext 标签样式不起作用

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

<cufontext style="color:red">Home</cufontext> 

我希望'Home'的文字颜色是红色

我试过了 <cufontext style="color:red !important">Home</cufontext>还有

运气不好..

最佳答案

您是否考虑过使用类作为 cufon 选择器?HTML:

<p class='cufon red'>Hello world</p>

CSS:

.red
{
color:red;
}

和 JS:

Cufon.replace('.cufon');

工作示例:http://jsfiddle.net/sE39M/

关于html - cufontext 标签样式不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23508137/

25 4 0