广告合作
  • 今日头条

    今日头条

  • 百度一下

    百度一下,你就知道

  • 新浪网

    新浪网 - 提供新闻线索,重大新闻爆料

  • 搜狐

    搜狐

  • 豆瓣

    豆瓣

  • 百度贴吧

    百度贴吧——全球领先的中文社区

  • 首页 尚未审核订阅工具 订阅

    如何让div旋转一定的角度

    来源:网络收集  点击:  时间:2024-02-13
    【导读】:

    用css3的transform属性就可以将div旋转。

    一、m11,m12,m21.m22 是控制角度的,html head meta http-equiv=Content-Type content=text/html; charset=utf-8 titleDIV 旋转属性的。

    二、演示/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: 67px; margin-left: 112px; 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 !-- style type=text/css #example { top: 50px; left: 50px; } /style !-- /head body div id=example旋转成功/div。

    本文关键词:

    版权声明:

    1、本文系转载,版权归原作者所有,旨在传递信息,不代表看本站的观点和立场。

    2、本站仅提供信息发布平台,不承担相关法律责任。

    3、若侵犯您的版权或隐私,请联系本站管理员删除。

    4、文章链接:http://www.1haoku.cn/art_33348.html

    相关资讯

    ©2019-2020 http://www.1haoku.cn/ 国ICP备20009186号05-06 09:10:14  耗时:0.029
    0.0294s