• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
阳光Angel
博客园    首页    新随笔    联系   管理    订阅  订阅
应用多种变形CSS3

 

 

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>应用多种变形</title>
        <style type="text/css">
        /*基本设置*/

body{margin:0;padding:0;font-size:12px;font-family:Arial,"宋体";backgorund:#fff;}/*文档清零,字体,字号,背景设置.*/

div,ul,li,p,form,h1,h2,h3,h4,h5,input,dl,dt,dd,fieldset,table,tr,td{margin:0;padding:0;}/*边界元素清零*/

ul,li,ol{list-style:none;}/*去除列表符号*/

img{border:none;}/*去除图片按钮边框*/

a{text-decoration:none;}/*去除超链接下划线*/
img,input,textarea{vertical-align:middle;}
        div {
            position:absolute;
            width:140px;
            height:140px;
            background-color:#e4105e;
            border:2px solid #000000;
            margin:30px;
        }
          /*.box {
            -moz-transform:rotate(30deg)  translate(260px,60px) scale(2.4,0.4);
            -webkit-transform:rotate(30deg)  translate(260px,60px) scale(2.4,0.4);
            -o-transform:rotate(30deg)  translate(260px,60px) scale(2.4,0.4);
            }*/ /* 该盒子旋转45度;位移100px,30px;缩放2.3,0.3*/

            .box {
            -moz-transform:translate(260px,60px) rotate(30deg)  scale(2.4,0.4);
            -webkit-transform:translate(260px,60px) rotate(30deg)  scale(2.4,0.4);
            -o-transform:translate(260px,60px) rotate(30deg)  scale(2.4,0.4);
            }
            /*如果变换的顺序不同,得到的效果也不同*/
           
</style>
</head>
<body>
    <div>文字</div>
    <div class="box">文字</div><br />

  
</body>
</html>

posted on 2013-06-25 22:02  xiaoleilei  阅读(256)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3