转动随意角度 怎样让div转动1定的角度

2021-03-10 21:39 jianzhan
m11,m12,m21.m22是操纵角度的

拷贝编码
编码以下:

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf⑻">
<title>DIV转动特性的演试</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<style type="text/css">
body {
font-family: "Arial", sans-serif;
}
#example {
position: absolute;
border: #09F solid 1px;
font-weight: 900;
padding: 10px;
display: block;
width: 500px;
height: 400px;
margin-top: ⑴px;
margin-left: ⑴px;
transform: rotate(40deg);
-o-transform: rotate(40deg);
-webkit-transform: rotate(40deg);
-moz-transform: rotate(40deg);
filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1.2660444431189777, M12=-0.3327876096865394, M21=0.65398, M22=0.9660444431189779);
}
</style>
<!--[if IE]>
<style type="text/css">
#example {
top: 50px;
left: 50px;
}
</style>
<![endif]-->
</head>
<body>
<div id="example"> 转动取得成功</div>
</body>
</html>