zoukankan      html  css  js  c++  java
  • 应用多种变形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;
                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>

  • 相关阅读:
    安装 windows 2008 解决 gpt 分区问题
    you have not created a boot efi partition
    echarts gauge 仪表盘去除外发光效果
    上国际网络——通过配置host
    juery 选择器 选择多个元素
    html5 <input> placeholder 属性
    PHP——字符串统一转码为GBK,自动判断是否UTF8并转码
    sublime text2 解决中文乱码
    PHP超级全局变量——Session 变量
    js为元素添加onclick事件
  • 原文地址:https://www.cnblogs.com/xiaoleidiv/p/3155701.html
Copyright © 2011-2022 走看看