transform与层叠顺序和层叠上下文实例页面
展示
默认


第一个图片设置transform:scale(1)


代码
-
HTML:
<h4>默认</h4> <img src="1.jpg"> <img src="1.jpg"> <h4>第一个图片设置transform:scale(1)</h4> <img src="1.jpg" class="transform"> <img src="1.jpg">
-
CSS:
img { width: 200px; height: 150px; } img + img { margin-left: -60px; } .transform { transform: scale(1); }