zoukankan      html  css  js  c++  java
  • css实现礼券效果3

       <view class="coupon">
                <view class="coupon-left">
                </view>
    
                <view class="coupon-right">
                    <view class="coupon-inner">
                        <i class="coupon-circle top"></i>
                        <i class="coupon-circle bottom"></i>
                    </view>
                </view>
    
            </view>
    
    .coupon {
        background: #d51d27;
         100%;
        overflow: hidden;
        margin-top: 15px;
    }
    
    
    
    .coupon-left {
        float: left;
        text-align: left; 
         60%;
        font-size: 12px;
     
    }
    .coupon-right {
        float: right;
        text-align: center;
         40%;
        font-size: 14px;
        
    }
    .coupon-inner {
        padding: 10px 15px;
        height: 75px;
        position: relative;
    }
    .coupon-right .coupon-inner {
        border-left: 2px dashed rgba(255, 255, 255, 0.5);
    }
    
    .coupon-circle {
        display: inline-block;
         16px;
        height: 16px;
        background: #fff;
        position: absolute;
        left: -9px;
        border-radius: 50%;
    }
    .coupon-circle.top {
        top: -8px;
    }
    .coupon-circle.bottom {
        bottom: -10px;
    }
    

      

  • 相关阅读:
    XML介绍
    JavaScript基础
    pygame模块参数汇总(python游戏编程)
    CSS3
    CSS( Cascading Style Sheets )简书
    HTML5
    用python进行应用程序自动化测试(uiautomation)
    HTML入门
    Selenium2 (python)
    C#快速入门
  • 原文地址:https://www.cnblogs.com/huanhuan55/p/10788829.html
Copyright © 2011-2022 走看看