头闻号

东莞市尖峰塑胶制品有限公司

其他灯具配附件|其他塑料包装材料|HDPE|PP|ABS|PVC

首页 > 新闻中心 > 科技常识:旋转任意角度 如何让div旋转一定的角度
科技常识:旋转任意角度 如何让div旋转一定的角度
发布时间:2024-10-07 04:27:28        浏览次数:5        返回列表

今天小编跟大家讲解下有关旋转任意角度 如何让div旋转一定的角度 ,相信小伙伴们对这个话题应该有所关注吧,小编也收集到了有关旋转任意角度 如何让div旋转一定的角度 的相关资料,希望小伙伴们看了有所帮助。

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>

来源:爱蒂网