开发者

Tool to diff two CSS elements

I have two div's that display slightly differently, I have looked through each of their CSS properties and they appear to be the same, however I am wondering if I've overlooked something.

Is there a tool that will basically diff the CSS of two different elements?

Preferably integrated into the browser.

EDIT

I have used Chrome's built in dev tools and gone through the computed styles area and manually compared each property (IE div.A font-weight:normal; div.B f开发者_StackOverflowont-weight:normal etc...)

I am looking for a tool that essentially says "Select Element A and B", and shoots out a list of differences. Like a Winmerge comparison or something like that.


Similar question was asked here and, as a result, I created a script that compares two elements in Chrome (you will find it in the linked answer). Also, based on said script, I created a handy Chrome DevTools Extension "CSS Diff".

Tool to diff two CSS elements


I think Firediff is what you want. While it doesn't compare two elements, but it kind'of logs DOM changes, so that you can compare those logs to see what's happening.

Also you can go to computed style in Firebug, and copy/paste computed style of each div into a different notepad file, and then compare those files using a file comparison tool. BeyondCompare is really cool.


div tags sometime behave different with same properties. The reason is your other code may be affecting it. In Firefox you can use firebug. the important thing in my opineon is you need to check the code around divs which is affecting their behaviour.


I am using Code Cola extension for Google Chrome. Very good and powerfull tool. Recomend for everybody.


Beyond compare is the tool for comparing css or any kind of file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜