我尝试在episerver中添加一个菜单,用于在tinyMCE中选择不同的字体。它适用于以下代码的p标记,但我希望能够为所有标记(p、h1、h2等)选择字体。
var styleItemsFonts = new object[]
{
new { title = "Garant", selector = "p", styles = new { fontFamily = "Garant" } },
new { title = "Clarendon Cn
假设我的页面中有一个框:
<div id="test" style="width:200px; height:200px; background:yellow">
this is a test
</div>
我只在我的页面中包含了"jquery-1.6.2.min.js“
然后我想改变字体大小,所以我使用
$('#test').animate({ fontSize: "10em"}, "slow");
然后我想更改我写的“background-color