是否有任何工具,有比较的2网页结构? [英] Are there any tools out there to compare the structure of 2 web pages?

查看:121
本文介绍了是否有任何工具,有比较的2网页结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到来自我们的创意团队的HTML页面,然后使用这些构建aspx页面。一大挑战,我经常面对越来越我吐出精确匹配他们的HTML。我几乎总是最后搞砸了的嵌套< D​​IV> 是我的页面和母版页之间的

I receive HTML pages from our creative team, and then use those to build aspx pages. One challenge I frequently face is getting the HTML I spit out to match theirs exactly. I almost always end up screwing up the nesting of <div>s between my page and the master pages.

有谁知道一个工具,将在这种情况下帮助 - 这将比较2页输出的结构性差异?我不能用一个标准的比较工具,因为我从创意接收ID的变化,文本替换 Lorem存有等。

Does anyone know of a tool that will help in this situation -- something that will compare 2 pages and output the structural differences? I can't use a standard diff tool, because IDs change from what I receive from creative, text replaces lorem ipsum, etc..

推荐答案

您可以使用 HTMLTidy 转换的以HTML格式良好的XML,所以你可以使用 XML DIFF ,因为古勒扎尔建议。

You can use HTMLTidy to convert the HTML to well-formed XML so you can use XML Diff, as Gulzar suggested.

tidy -asxml index.html

这篇关于是否有任何工具,有比较的2网页结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆