Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试比较两个 Document 对象并尝试根据结果进行操作。例如,我将有一个 Document 对象,例如,
<head> <value> </value> </head>
我将与另一个文档对象进行比较,例如,
<head> </head>
如果两个 Document 对象的格式不一样,我想做一些操作。你能帮我解决一下这种情况吗?
谢谢你们
XMLUnit旨在进行这种比较,特别是用于单元测试。但它肯定也可以用于其他用途。
我创建了一个 JS Fiddle 来演示我的问题:http: //jsfiddle.net/pqTqH/
如何更新我的 CSS 以使表格垂直居中而不设置height表格或 a top-margin?即使只有 1 行,我也希望表
height
top-margin