手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >让div旋转一定的角度方法
让div旋转一定的角度方法
摘要:m11,m12,m21.m22是控制角度的DIV旋转属性的演示body{font-family:"Arial",sans-serif;}#e...

 m11,m12,m21.m22是控制角度的

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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: -1px;
margin-left: -1px;
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.1127876096865398, 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>

【让div旋转一定的角度方法】相关文章:

firefox中div+css的外层背景色不见的解决方法

div嵌套 img 空白解决方法

CSS教程:闭合CSS浮动元素的几种方法

IE6 innerHTML写入的iframe src不显示BUG的解决方法

Input标签与图片按钮水平对齐解决方法

IE7.0以下版本列表li中的元素错位一个上一个下的解决方法

为不同的浏览器载入不同CSS的二种方法

css3实现闪亮进度条效果

如何让某个页面使用特定的CSS

CSS的nth-child使用方法

精品推荐
分类导航