【发布时间】:2012-11-26 16:54:26
【问题描述】:
假设我有一个这样的html文档
<div>
hi this is one line<br>
<p>This is second line</p>
<p>This 'word' is within quote</p>
<p>Another 'lorem ipsum' in quote</p>
</div>
我如何将不同的 CSS 仅应用于在我的文档中多次出现的单词“line”,以及使用 jQuery 将不同的 CSS 应用于出现在引号内的所有单词。某种模式匹配和应用 css
有任何可用的脚本吗?
【问题讨论】:
标签: javascript jquery html css jquery-plugins