【发布时间】:2015-12-26 09:54:02
【问题描述】:
容器变换后的DOM宽度和变换前一样吗?
为什么?
var theScale = aNumber;
var containerWidth = theContainer.width();
alert(containerWidth);
// and the other prefixes, as well
theContainer.css("-webkit-transform", "scale(" + theScale + ")");
containerWidth = theContainer.width();
alert(containerWidth); // the same value ???
【问题讨论】:
-
如果两个比例因子相同,只需指定一个即可。
标签: css css-transforms