162
rated 0 times
[
165]
[
3]
/ answers: 1 / hits: 16379
/ 11 Years ago, fri, july 5, 2013, 12:00:00
I have some code:
$(# + this.id).css(border-radius,this.radius + px);
$(# + this.id).css(-moz-border-radius,this.radius + px);
$(# + this.id).css(-webkit-border-radius,this.radius + px);
I am trying to improve lines like this by using JSON to apply them (as shown in jQuery's docs) or by removing the vendor prefix versions completely.
Does jQuery's .css()
method automatically apply any required vendor prefixes when changing CSS properties on an element?
More From » jquery