我正在使用 Jquery 和 CSS 缩放图像:
$('#Site img').css({
zoom: CurrentZoom,
'-ms-transform': 'scale(' + CurrentZoom + ')',
'-moz-transform': 'scale(' + CurrentZoom + ')',
'-o-transform': 'scale(' + CurrentZoom + ')'
});
$('#Site canvas').css({
zoom: CurrentZoom,
'-ms-transform': 'scale(' + CurrentZoom + ')',
'-moz-transform': 'scale(' + CurrentZoom + ')',
'-o-transform': 'scale(' + CurrentZoom + ')'
});
但它在除 IE 之外的所有浏览器上都能正常工作。
最佳答案
关于jquery - CSS 变换比例在 IE 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15403360/