2D变形transform的translate和rotate
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>transform的 translate和rotate</title>
<style type="text/css">
#div1{
height:200px;
width: 200px;
border:1px solid;
transform: translate(100px,100px);
}
#div2{
height: 100px;
width: 100px;
background: yellow;
border:1px solid;
transform: rotate(35deg);
padding: 10px;
transform-origin: 10% 60%;
}
</style>
</head>
<body>
<div id="div1">
<div id="div2">Hello</div>
</div>
</body>
</html>
你要记得,输出到了一定量的时候,迟早会有所得
浙公网安备 33010602011771号