HTML Parser的Proper use of HTML

来源:互联网 发布:淘宝网儿童玩具店 编辑:程序博客网 时间:2024/05/01 06:13

 公司在做一个美国的项目,由于jsp页面中做得不规范,包含有大量的style,内联的css。美国方面就要求我们Proper use of HTML。

Currently the implementation of html is poor in the UI. Start with the most basic of fundamentals:

1.) Put content in the html
2.) Put style information in css

There should be no position or style information the html the onlyexception that comes to mind is the layout (not style) of the tabulardata, which belongs in a table.

 

这种苦差事当然落在我这个新手上了。手动去一个个找出来,那我可以两天不休息了,还得把眼睛找花。没有办法,总得找出点方法来对付吧。想想HTML Parser提取页面,得到含有style属性的节点,修改后再写入。代码如下: 方法可能有点不笨,望大家指教。

原创粉丝点击