zoukankan      html  css  js  c++  java
  • 优惠券排版

    
    

    一、优惠券

    .coupon{
           200px;
          height: 80px;      
          background: radial-gradient(circle at right bottom, transparent 10px, #ffffff 0) top right / 50% 40px no-repeat,
            radial-gradient(circle at left bottom, transparent 10px, #ffffff 0) top left / 50% 40px no-repeat,
            radial-gradient(circle at right top, transparent 10px, #ffffff 0) bottom right / 50% 40px no-repeat,
            radial-gradient(circle at left top, transparent 10px, #ffffff 0) bottom left / 50% 40px no-repeat;
          filter: drop-shadow(3px 3px 3px #c5c5c5);
     }

    二、气泡框

    <style>
    .bubble-tip {
       100px;
      height: 30px;
      line-height: 30px;
      margin-left: 10px;
      border: 1px solid #c5c5c5;
      border-radius: 4px;
      position: relative;
      background-color: #fff;
    }
    .bubble-tip::before {
      content: "";
       0;
      height: 0;
      border-style: solid;
      border- 10px 10px 10px 0;
      border-color: transparent #ffffff transparent transparent;
      position: absolute;
      top: 5px;
      left: -10px;
      z-index: 2;
    }
    .bubble-tip::after {
      content: "";
       0;
      height: 0;
      border-style: solid;
      border- 10px 10px 10px 0;
      border-color: transparent #c5c5c5 transparent transparent;
      position: absolute;
      top: 5px;
      left: -11px;
      z-index: 1;
    }
    </style>
    <div class="bubble-tip"></div>

     三、三角形

      

    <style>
    .triangle {
       0;
      height: 0;
      border-style: solid;
      box-sizing: border-box;
      border- 0 10px 10px;
      border-color: transparent transparent #c5c5c5 transparent;
    }
    </style>
    <div class="triangle"></div>

    <style>
    .left-top-triangle {
       0;
      height: 0;
      border-style: solid;
      box-sizing: border-box;
      border- 10px;
      border-color: #c5c5c5 transparent transparent #c5c5c5;
    }
    </style>
    <div class="left-top-triangle"></div>

     四、五边形

    <style>
    .pentagon {
       54px;
      position: relative;
      border- 50px 18px 0;
      border-style: solid;
      border-color: #c5c5c5 transparent;
    }
    
    .pentagon::before {
      content: "";
      position: absolute;
       0;
      height: 0;
      top: -85px;
      left: -18px;
      border- 0 45px 35px;
      border-style: solid;
      border-color: transparent transparent #c5c5c5;
    }
    </style>
    <div class="pentagon"></div>

  • 相关阅读:
    HDU1496 Equations 卡时间第二题
    HDU3833 YY's new problem 卡时间第一题
    hiho1601最大分数 DP
    密码脱落
    hihoCoder
    王坚十年前的坚持,才有了今天世界顶级大数据计算平台MaxCompute
    SaaS加速器 I 商业中心:提供商业助力 共享商业成功
    发布SaaS加速器:我们不做SaaS,我们只做SaaS生态的推进者和守护者
    MaxCompute SQL 使用正则表达式选列
    MaxCompute如何对SQL查询结果实现分页获取
  • 原文地址:https://www.cnblogs.com/zjz666/p/13048560.html
Copyright © 2011-2022 走看看