Looking for a plug-in like this, which is to write the style and output it to the corresponding element to the style
eg:
<style>
.foobar { background: #fff; }
</style>
<p id="a" class="foobar"></p>
<p id="b" class="foobar"></p>
<!-- 转换为 ↓↓↓ -->
<p id="a" class="foobar" style="background: #fff;"></p>
<p id="b" class="foobar" style="background: #fff;"></p>
I don’t know why you want to do this. Using css is for browser caching and better maintenance, but outputting it to style only increases these problems
I found it myself
https://github.com/jonkemp/gu...