Getting values of global stylesheet in jQuery

后端 未结 4 1743
长发绾君心
长发绾君心 2020-12-12 04:58

When I use a style sheet definition like this on HTML page scope

#sideBar {
  float: left;
  width: 27.5%;
  min-width: 275;
  ... 
}

the f

4条回答
  •  鱼传尺愫
    2020-12-12 05:15

    When you need the exact value as defined in the global stylesheet you have to access the rules within the style-element.
    This is not implemented in jQuery.

    IE: rules-collection
    Others: CSSRuleList (May be supported by IE8 or 9 too, can't tell you exactly)

提交回复
热议问题