jQuery .css() function not returning expected values

前端 未结 7 1402
情歌与酒
情歌与酒 2020-12-31 08:10

Alright, I\'ve search the jQuery docs (needs somebody devoted to maintaining), I\'ve searched SO, and I\'ve searched Google. I can\'t find the answer to this question.

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 08:30

    jQuery now uses a cssHooks feature for certain .css() requests, width and height in particular.

    So the width() function and the .css('width') both run through the same code on occasion.

提交回复
热议问题