cufontext标签样式不起作用

时间:2014-05-07 03:19:37

标签: html css

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

我想要&#39; Home&#39;的文字颜色。变红了

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

没有运气..

1 个答案:

答案 0 :(得分:2)

您是否考虑过将课程用作cufon选择器? HTML:

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

的CSS:

.red
{
    color:red;
}

和JS:

Cufon.replace('.cufon');

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

相关问题