有没有办法将html文档中的硬编码样式提取到外部CSS文件?如果不是,你有一个想法如何做到这一点?你以前做过吗?从HTML文件提取CSS样式到外部CSS文件
自例如
<div style="background-color: red">
<a style="font-weight: bold"></a>
</div>
到
<div id='st-01'>
<a id='st-02'><a/>
</div>
#st-01 { background-color: red }
#st-02 { font-weight: bold }