zoukankan      html  css  js  c++  java
  • 淘宝三角做法防CSS2D转换

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>淘宝三角做法css2D转换 transform/transition</title>
    <style type="text/css">
    body,ul,li{margin:0,padding:0;border:0;}
    ul{margin:100px;list-style:none;}
    a{font-size:14px;color:#3c3c3c;
    text-decoration:none;}
    ul li{100px;height:35px; background:#9C9;line-height:35px;border:1px solid #foo;}
    ul li a{margin-right:10px;float:left;
    height:35px;
    line-height:35px;
    }
    /*ul li i{
            display:block;
            height:6px;
            6px;
            float:right;
            margin:15px 0;
            position:relative;
    background:#66C; 
            transition:transform 0.3s ease 0.1s;
            -webkit-transition:-webkit-transform 0.3s ease 0.1s;
            -ms-transition:-ms-transform 0.3s;
            -moz-transition:-moz-transform 0.3s ease 0.1s;
            -o-transition:-o-transform 0.3s ease 0.1s;
            
            }*/
    ul li i{ 
    display:block; 
    height:10px; 
    10px;
    float:right;
    margin:15px 4px;
    position:relative;
    transition:transform 0.3s ease 0.1s;
    -webkit-transition:-webkit-transform 0.3s ease 0.1s;
    -ms-transition:-ms-transform 0.3s ease 0.1s;
    -moz-transition:-moz-transform 0.3s ease 0.1s;
    -o-transform:-o-transform 0.3s ease 0.1s;
    background:url(../images/3.png) no-repeat;
    }
    ul li:hover i{
    transform:rotate(180deg);
    -ms-transform:rotate(180deg); /* Internet Explorer */
    -moz-transform:rotate(180deg); /* Firefox */
    -webkit-transform:rotate(180deg); /* Safari 和 Chrome */
    -o-transform:rotate(180deg); /* Opera */
    }
    /*
    em,span{
    0;
    height:0;
    border-style:solid dashed dashed dashed;
    border-color:transparent;
    border-3px;
    position:absolute;
    top:0;
    left:0;
    }
    em{border-top-color:#f00;top:1px;}
    span{border-top-color:#fff;}*/
    </style>
    </head>
    <body>
    <ul>
    <li><a href="#">我的淘宝<i><em></em><span></span></i></a></li>
    </ul>
    </body>
    </html>
  • 相关阅读:
    Socket.IO 客户端 API IO
    约束,在ios8 没问题,在ios7崩溃的问题,UItextField
    在Viewdidload里面给self.View加动画无效的问题
    改变UITextField PlaceHolder的字体和颜色,不影响正常输入
    iOS第三方键盘高度获取不准确问题
    tableViewCell的分割线短一截的问题
    iOS开发中模拟器归档成功,但是真机归档失败的问题
    C语言——数组、字符串
    C语言——函数
    C语言——流程控制
  • 原文地址:https://www.cnblogs.com/xiaoleidiv/p/3688015.html
Copyright © 2011-2022 走看看