将HTML span + style标记替换为HTML 4字体标记

时间:2017-03-21 14:03:21

标签: java html

替换Html5范围样式标记的最快方法是什么:

<html>
<body>

<p>
   This is My text and <span style = "color:red; font-weight:bold">this is some text</span> even more
</p>

</body>
</html>

到HTML4字体标记:

<html>
<body>

<p>
   This is My text and <font color="red">this is some text</font> even more
</p>

</body>
</html>

忽略所有样式属性,只留下color

0 个答案:

没有答案