title: 图片水平镜像翻转 tags: html category: 前端开发
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>图像翻转</title>
<style>
table {
margin: 0 auto;
}
.mirrorRotateLevel {
transform: rotate(180deg);
}
td {
border: 3px solid pink;
}
</style>
</head>
<body>
<table>
<tr>
<th>原图</th>
<th>翻转图像</th>
</tr>
<tr>
<td><img src="./images/jiaowu1.jpg" alt="教务管理" /></td>
<td>
<img
src="./images/jiaowu1.jpg"
alt="教务管理"
class="mirrorRotateLevel"
/>
</td>
</tr>
<tr>
<td><img src="./images/office1.jpg" alt="办公系统" /></td>
<td>
<img
src="./images/office1.jpg"
alt="办公系统"
class="mirrorRotateLevel"
/>
</td>
</tr>
<tr>
<td><img src="./images/student1.jpg" alt="学生管理" /></td>
<td>
<img
src="./images/student1.jpg"
alt="学生管理"
class="mirrorRotateLevel"
/>
</td>
</tr>
</table>
</body>
</html>
演示
https://codepen.io/tiansztiansz/pen/zYpXoRj
|