代码示例:(标识:css3_transform_scaleY_1)
<!DOCTYPE html>
<html>
<head>
<style>
div {
  margin: 150px;
  width: 200px;
  height: 100px;
  background-color: yellow;
  border: 1px solid black;
  -ms-transform: scaleY(3); /* IE 9 */
  transform: scaleY(3); /* 标准语法 */
}
</style>
</head>
<body>

<h1>scaleY() 方法</h1>
<p>scaleY() 方法增加或减少元素的高度。</p>

<div>
该 div 元素是其原始高度的三倍。
</div>

</body>
</html>
运行结果: