开发者

After scaling an image with the help of CSS3's `scale` property, how to get the actual width/height of the image?

After scaling an image with开发者_运维知识库 the help of CSS3's scale property, how to get the actual width/height of the image?


scale = 1.4;
$('#image').css('transform', 'scale('+scale+')');
var actual_height = $('#image').height() * scale;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜