How do I get the border-radius from an element using jQuery?

后端 未结 3 890
梦谈多话
梦谈多话 2021-01-04 13:59

I\'ve got a div, with the following HTML and CSS. In an attempt to make my Javascript code more robust, I\'m attempting to retrieve certain CSS attributes from the selected

3条回答
  •  滥情空心
    2021-01-04 14:41

    In Firefox at least, reading with $('#foo').css('MozBorderRadius') works. $('#foo').css('-moz-border-radius') does not, even though it works when setting the value.

提交回复
热议问题