scaleY()
规定Y轴上的缩放。
语法
scaleY(y)
值
| 值 | 描述 |
|---|---|
| y | 规定Y轴上的缩放比例。 |
例子
HTML
<div class="stage"> <div class="box">transform:scaleY(2)</div> </div>
CSS
.stage{
width:100%;
height:200px;
background:#333;
text-align:center;
}
.box{
display:inline-block;
width:350px;
height:50px;
background:red;
font-size:20px;
color:#fff;
transform:scaleY(2);//在中心位置处scaleY(2)倍。
}
执行结果
transform:scaleY(2)