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

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

<div>
该 div 元素是其原始宽度的两倍。
</div>

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