CSS使用变换
- transform
- rotate:旋转角度
- scale:倍数
- scalex
- scaley
- origin:中心点坐标
- px,px
- top right left bottom
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Examples</title>
<style type="text/css">
p {
width: 100px;
height: 100px;
background-color: antiquewhite;
}
p:hover{
/*width: 100px;
height: 100px;*/
background-color: antiquewhite;
/*transform:rotate(-30deg);*/
transform-origin: top right;
transform:scale(1.5);
}
</style>
</head>
<body>
<p></p>
</body>
</html>