<!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>利用2D旋转rotate设置</title>
<style>
div {
overflow:hidden;
width: 200px;
height: 200px;
border: 1px solid hotpink;
margin: 10px;
float: left;
}
div::before {
content: "你好";
display: block;
width: 100%;
height: 100%;
background-color: hotpink;
transform: rotate(180deg);<