求一个方案(非node环境)将页面引入的css文件中的class样式提取出来转换为标签的行内样式style,例如:将如下的格式<html><head> <style> p { color: red; } </style> <link rel="stylesheet" href="style.css"></head><body> <p>Test</p></body></html>style.cssp { text-decoration: underline;}转换成为:<html><head></head><body> <p style="color: red; text-decoration: underline;">Test</p></body></html>
添加回答
举报
0/150
提交
取消