假设我的页面中有一个框:
<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
我有一个简单的网页,其中打开的html标签有一个属性font-size:60% !important设置在css文件中。
<html>
<head>
... some js and css ...
</head>
<body>
... header ...
... content ... <-- need to replace that by new content
... footer ...
</body>
</html>
一切都渲染得很好(页眉/内容/页脚)。
我还有另一个文件,我已经将内容放在这个网页上(基于
我有这个HubL代码(HubSpot):{ post.summary }}。这将提取每个博客文章的摘要,并将其添加到我放置HubL的任何地方,在我的例子中,这是一封电子邮件。
然而,它不只是拉文本,它拉文本与它的CSS放在一起。也就是说。
<span style="font-size: 1.25rem;">
This text here sits in the blog post.
</span>
在电子邮件中,我不希望 summary成为font-size: 1.25rem,我希望它是14px。
我认为,简单地将<p>设置为summa