zoukankan      html  css  js  c++  java
  • 各种三角形

    上三角: 

    .up {
             0;height: 0;
            border-left: 50px solid transparent;
            border-right: 50px solid transparent;
            border-bottom: 100px solid #000;
        }
    <div class="up"></div>

    下三角:

    .down {
             0;height: 0;
            border-left: 50px solid transparent;
            border-right: 50px solid transparent;
            border-top: 100px solid #000;
        }
    <div class="down"></div>
    

    左三角:  

    .left {
             0;height: 0;
            border-top: 50px solid transparent;
            border-right: 100px solid #000;
            border-bottom: 50px solid transparent;
        }
    <div class="left"></div>
    

    右三角:  

     .right {
             0;height: 0;
            border-top: 50px solid transparent;
            border-left: 100px solid #000;
            border-bottom: 50px solid transparent;
        }
    <div class="right"></div>
    

    左上:  

    .topLeft {
             0;height: 0;
            border-top: 100px solid #000;
            border-right: 100px solid transparent;
        }
    <div class="topLeft"></div>
    

    右上:  

    .topRight {
             0;height: 0;
            border-top: 100px solid #000;
            border-left: 100px solid transparent;
        }
    <div class="topRight"></div>
    

    左下:  

    .bottomLeft {
             0;height: 0;
            border-bottom: 100px solid #000;
            border-right: 100px solid transparent;
        }
    <div class="bottomLeft"></div>
    

     右下: 

    .bottomRight {
             0;height: 0;
            border-bottom: 100px solid #000;
            border-left: 100px solid transparent;
        }
    
    <div class="bottomRight"></div>
    
  • 相关阅读:
    java 枚举
    日志监控
    bindActionCreators
    npm 重点小结
    怎么评价Facebook的Relay框架?Meteor.js 是什么?
    解决跨域问题
    React Test相关资料
    深入理解JavaScript系列
    前端mac下的工具
    WebKit的CSS扩展(WebKit是私有属性)
  • 原文地址:https://www.cnblogs.com/AliceLiu/p/5464665.html
Copyright © 2011-2022 走看看