How can I tell if a particular CSS property is inherited with jQuery?

后端 未结 7 788
自闭症患者
自闭症患者 2020-11-29 03:49

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

7条回答
  •  抹茶落季
    2020-11-29 04:49

    I think, it's nice behavior of jquery. What do you want to get when $('div.black:eq(0)').css('line-height'), false, or undefined? This is so confusing, because real value of line-height (inherited, yes) is 1 em.

提交回复
热议问题