zoukankan      html  css  js  c++  java
  • css 绘制三角形 && css 向下箭头旋转

    <!doctype html>
    <html lang="en">
    <head>
        <meta charset="UTF-8" />
        <title>三角形</title>
        <style>
            div{
                0;height:0;
                border: 20px solid;
                /*平分效果*/
                border-color:red green blue black;
                /*单个三角形*/
                /*border-color:transparent transparent lightgreen transparent;*/
            }
        </style>
    </head>
    <body>
        <div></div>
    </body>
    </html>


     /* 向上的箭头 */
     .dot-top {
       position: relative;
       top: 21px;
       left: 3rem;
       font-size: 0;
       line-height: 0;
       border: 10px dashed #eeeeee;
       border-top- 0;
       border-right-color: transparent;
       border-bottom-style: solid;
       border-left-color: transparent;
      } 
    

     

     /* 向下箭头旋转-展开内容 */ 
    
      i{
         .14rem;
        height: .08rem;
        background: url('../images/down@2x.png') no-repeat center;
        background-size: 100% 100%;
        transition: transform 0.3s ease;
        -moz-transition: -moz-transform 0.3s ease;
        -webkit-transition: -webkit-transform 0.3s ease;
        -o-transition: -o-transform 0.3s ease;
      }
      .up {
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -o-transform: rotate(180deg);
      }
    

      

  • 相关阅读:
    CodeForces 955D
    C# 基础复习三 C#7
    C#各版本新功能 C#7.3
    同步基元概述
    C#各版本新功能 C#7.1
    C#各版本新功能 C#6.0
    C#各版本新功能 C#7.0
    js加载事件和js函数定义
    java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES) 最蠢
    消息管理-activemq
  • 原文地址:https://www.cnblogs.com/lisaShare/p/9515043.html
Copyright © 2011-2022 走看看