This is a very simple question, so I\'ll keep it really brief:
How can I tell if a particular DOM element\'s CSS property is inherited?
Reas
http://jsfiddle.net/k7Dw6/
var $black = $('div.black:eq(0)'); alert($('').attr('class', $black.attr('class')).css('line-height') === $black.css('line-height')); You could create a new element with the same class (and ID I guess) and check if the CSS property is the same or not. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You could create a new element with the same class (and ID I guess) and check if the CSS property is the same or not.