x
 
<!DOCTYPE html>
<html>
<head>
<style>
#img1 {
  transform: matrix(1, -0.3, 0, 1, 0, 50);
}
#img2 {
  transform: matrix(1, 0, 0.5, 1, 50, 50);
}
#img3 {
  transform: matrix(2, 1, 0.5, 1, 90, 70);
}
</style>
</head>
<body>
<h1>matrix() 函数</h1>
<p>参数如下:matrix(scaleX(), skewY(), skewX(), scaleY(), translateX(), translateY())。</p>
<img id="img1" src="/i/photo/tulip.jpg" alt="郁金香" width="300" height="300">
<img id="img2" src="/i/photo/tulip.jpg" alt="郁金香" width="300" height="300">
<img id="img3" src="/i/photo/tulip.jpg" alt="郁金香" width="300" height="300">
<p>原始图片:</p>
<img src="/i/photo/tulip.jpg" alt="郁金香" width="300" height="300">
</body>
</html>