This topic created in 4176 days ago, the information mentioned may be changed or developed.
比如12*13px的按照2倍缩放,则变成24*26px的
我搜索到的结果都是溢出某个范围然后限制尺寸,没有找到这种缩放方式的,求解!
3 replies • 2015-06-11 08:37:13 +08:00
 |
|
transform: scale(), zoom,都是缩放,前者使用广泛
|
 |
|
<IMG > 的话,高度宽度只设其中一项。要动态的话可以用 JS 算,然后改 style。
|
 |
|
banriJun 11, 2015 via iPhone
3
背景也行啊,background-size:50% 50%
|