开发者

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

开发者 https://www.devze.com 2023-02-11 02:57 出处:网络
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;

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

精彩评论

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

关注公众号