开发者

How to check if some css properties are already set?

开发者 https://www.devze.com 2023-04-12 10:15 出处:网络
I need to know if an object has the \"left\", \"right\", \"top\" or \"bottom\" properties set from an external css file, or not.

I need to know if an object has the "left", "right", "top" or "bottom" properties set from an external css file, or not.

I'm tracing the properties after the object is created and chrome returns the value "auto" if th开发者_StackOverflow社区e properties are not set and that helps me, but firefox does not. Firefox returns some px values (eg. 0 for left).

Do you know a cross-browser solution?

0

精彩评论

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