• 纯 CSS 创建各种不同的图形形状


    使用代码

    矩形

    .rectangle {
         250px;
        height: 150px;
        background-color: #6DC75F;
    }
    
    <div></div>

    三角形

    .triangleUp {
                border-left: 75px solid transparent;
                border-right: 75px solid transparent;
                border-bottom: 150px solid  #6DC75F;
                 0;
                height: 0;
            }
    
    <div class="triangleUp"></div>

    椭圆形

    .oval {
         300px;
        height: 150px;
        background: #6DC75F;
        -moz-border-radius: 150px / 75px;
        -webkit-border-radius: 150px / 75px;
        border-radius: 150px / 75px;
    }
    
    <div class="oval"></div>

    月牙形

    .moon {
       150px;
      height: 150px;
      border-radius: 50%;
      box-shadow: 15px 15px 0 0 green;
    }
    
    <div class="moon"></div>

    树叶

    .leaf {
        border-radius: 5px 300px 3px 300px;
        background: #6DC75F;
         150px;
        height: 150px;
    }
    
    <div class="leaf"></div>
  • 相关阅读:
    scrapy--Cookies
    python--signal
    python--redis
    TCP/IP 协议
    python--Wrapper
    python--inspect
    python--pexpect
    linux 特殊命令(一)
    day45 Pyhton 数据库Mysql 02
    day44 Pyhton 数据库Mysql
  • 原文地址:https://www.cnblogs.com/loveheyi/p/5319789.html
Copyright © 2020-2023  润新知