假设我有一个 ditamap 文件。我已发布到 html5。发布后假设我的 html 文件看起来像
<body id="SampleTopic">
<h1 class="title topictitle1" id="ariaid-title1">Sample topic</h1>
<div class="body">
<p class="p">some<strong class="ph b">bold</strong><span class="ph special">text</span></p>
<div class="p">
<dl class="dl">
<dt class="dt dlterm">Term</dt>
<dd class="dd">Defination</dd>
</dl>
</div>
</div>
</article>
</body>
在 Html 文件中,我想在 body 元素上添加一些新属性,例如
<body id="SampleTopic" class="test">
那么任何人都可以帮我解决这个问题吗????我可以添加一些插件,如果可以,如何编写代码???