宅男在线永久免费观看网直播,亚洲欧洲日产国码无码久久99,野花社区在线观看视频,亚洲人交乣女bbw,一本一本久久a久久精品综合不卡

全部
常見問題
產(chǎn)品動態(tài)
精選推薦

從零開始學優(yōu)惠券樣式代碼編寫,讓你的網(wǎng)站煥然一新!

管理 管理 編輯 刪除

樣式1:

8429a202311250926512312.png

代碼實例:


<div class="box">
      <div class="itemBox">
        <div class="leftBox">全額抵扣</div>
        <div class="rightBotton">
          <button>立即使用</button>
        </div>
      </div>
    </div>
 .box {
  background-color: red;
  .itemBox {
    display: flex;
    justify-content: flex-start;
    position: relative;
    border-radius: 10px;
    background-color: #fff;
    &::before {
      content: '';
      position: absolute;
      top: 45%;
      background-color: #f5f5f5;
      width: 12px;
      height: 12px;
      border-radius: 6px;
      left: -5px;
    }
    &::after {
      content: '';
      position: absolute;
      top: 45%;
      background-color: #f5f5f5;
      width: 12px;
      height: 12px;
      border-radius: 6px;
      right: -5px;
    }
    .leftBox {
      border-radius: 10px 0 0 10px;
      background-color: #8b91ff;
      width: 95px;
      height: 90px;
      line-height: 90px;
      font-size: 18px;
      font-weight: bold;
      color: #fff;
      text-align: center;
    }
    .rightBotton {
      margin-left: 18px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      button {
        background-color: #f0f1ff;
        color: #8b91ff;
        height: 28px;
        width: 86px;
        border: none;
        border-radius: 14px;
        font-size: 14px;
      }
    }
  }
}

樣式2:

6b329202311250926567074.png

代碼實例:

<div class="coupon">
      <div class="coupon-info coupon-hole">
        <div>111</div>
        <div>111</div>
      </div>
      <div class="coupon-get">立即領(lǐng)取</div>
    </div>
.coupon {
  display: inline-flex;
  color: white;
  position: relative;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin: 1rem;
  /** 這里不能用百分號,因為百分號是分別相對寬和高計算的,會導致弧度不同  */
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
  overflow: hidden;
  background-color: #f39b00;
}
/* 左邊框的波浪 */
.coupon::before {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 14px;
  background-image: radial-gradient(white 0, white 4px, transparent 4px);
  /** 如果只設(shè)置為半徑的兩倍(直徑),那么半圓之間沒有類似堤岸的間隔 */
  background-size: 14px 14px;
  background-position: 0 2px;
  background-repeat: repeat-y;
  z-index: 1;
}
.coupon::before {
  left: -7px;
}
 
.coupon-info {
  padding: 1rem;
  position: relative;
  min-width: 15rem;
  border-right: 2px dashed white;
}
.coupon-info::before {
  top: -0.5rem;
}
.coupon-info::after {
  bottom: -0.5rem;
}
 
/* 使用兩個邊框為圓角的白色div制造半圓缺角,有個缺點是這個缺角必須與背景色相同(clip-path不好弄) */
.coupon-hole::before,
.coupon-hole::after {
  content: '';
  width: 1rem;
  height: 1rem;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  right: -0.5rem;
}
.coupon-get {
  /** 這里使用flex是為了讓文字居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-width: 5rem;
  position: relative;
  padding-left: 0.6rem;
}

樣式3:

d4d25202311250927013688.png

代碼實例:

<div class="coupon">
      <div class="coupon-info">
        <div>111</div>
        <div>111</div>
        <div>111</div>
      </div>
      <div class="coupon-get">
        <div class="coupon-desc">立即領(lǐng)取</div>
      </div>
    </div>
.coupon {
  display: inline-flex;
  color: white;
  position: relative;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin: 1rem;
  /** 這里不能用百分號,因為百分號是分別相對寬和高計算的,會導致弧度不同  */
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
  overflow: hidden;
  background-image: linear-gradient(150deg, #f39b00 50%, #f39b00d8 50%);
  // background-image: linear-gradient(150deg, #d24161 50%, #d24161d8 50%);
  // background-image: linear-gradient(150deg, #7eab1e 50%, #7eab1ed8 50%);
  // background-image: linear-gradient(150deg, #50add3 50%, #50add3d8 50%);
}
.coupon::before {
  left: -7px;
}
.coupon::after {
  right: -7px;
}
/* 左邊框的波浪 */
.coupon::before,
.coupon::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 14px;
  background-image: radial-gradient(white 0, white 4px, transparent 4px);
  /** 如果只設(shè)置為半徑的兩倍(直徑),那么半圓之間沒有類似堤岸的間隔 */
  background-size: 14px 14px;
  background-position: 0 2px;
  background-repeat: repeat-y;
  z-index: 1;
}
 
.coupon-info {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
  min-width: 15rem;
  border-right: 2px dashed white;
}
.coupon-info::before {
  top: -0.5rem;
}
.coupon-info::after {
  bottom: -0.5rem;
}
 
.coupon-get {
  padding: 1rem;
  /** 這里使用flex是為了讓文字居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-width: 5rem;
  position: relative;
  .coupon-desc {
    font-size: 18px;
    font-weight: bold;
  }
}

樣式4:

34103202311250927064531.png

代碼實例:

<div class="quan">
    <div class="quanInfo">
      <div>111</div>
      <div>111</div>
    </div>
    <div class="receiveBtn">
      <div class="receive">使用</div>
    </div>
  </div>
.quan {
  margin: 22px 37px;
  background-color: #17dbcb;
  border-radius: 10px;
  display: flex;
  width: 400px;
  height: 100px;
}
 
.quanInfo {
  background-image: radial-gradient(
      circle at right top,
      #ffffff,
      #ffffff 15px,
      transparent 16px
    ),
    radial-gradient(
      circle at right bottom,
      #ffffff,
      #ffffff 15px,
      transparent 16px
    );
  border-right: 1px dashed #f64f51;
  padding: 30px 50px;
  width: 70%;
}
.receiveBtn {
  background-image: radial-gradient(
      circle at left top,
      #ffffff,
      #ffffff 15px,
      transparent 16px
    ),
    radial-gradient(
      circle at left bottom,
      #ffffff,
      #ffffff 15px,
      transparent 16px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -2px;
  background-color: pink;
}
.receive {
  border-radius: 23px;
  background-color: #5fc484;
  padding: 7px 31px;
  text-align: center;
  width: 30px;
  margin: 0 20px;
  font-size: 12px;
  color: #ffffff;
}

樣式5:

48c7a202311250927306453.png

代碼實例:

<div class="coupon">
   <div class="aa">111</div>
</div>
.coupon {
  position: relative;
  width: 290px;
  height: 100px;
  background: radial-gradient(circle at right top, transparent 15px, red 0) top
      left/90px 50% no-repeat,
    radial-gradient(circle at right bottom, transparent 15px, red 0) bottom
      left/90px 50% no-repeat,
    radial-gradient(circle at left top, transparent 15px, pink 0) top
      right/200px 50% no-repeat,
    radial-gradient(circle at left bottom, transparent 15px, pink 0) bottom
      right/200px 50% no-repeat;
  .aa {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    color: pink;
  }
}


請登錄后查看

CRMEB-慕白寒窗雪 最后編輯于2023-11-25 10:01:34

快捷回復
回復
回復
回復({{post_count}}) {{!is_user ? '我的回復' :'全部回復'}}
排序 默認正序 回復倒序 點贊倒序

{{item.user_info.nickname ? item.user_info.nickname : item.user_name}} LV.{{ item.user_info.bbs_level || item.bbs_level }}

作者 管理員 企業(yè)

{{item.floor}}# 同步到gitee 已同步到gitee {{item.is_suggest == 1? '取消推薦': '推薦'}}
{{item.is_suggest == 1? '取消推薦': '推薦'}}
沙發(fā) 板凳 地板 {{item.floor}}#
{{item.user_info.title || '暫無簡介'}}
附件

{{itemf.name}}

{{item.created_at}}  {{item.ip_address}}
打賞
已打賞¥{{item.reward_price}}
{{item.like_count}}
{{item.showReply ? '取消回復' : '回復'}}
刪除
回復
回復

{{itemc.user_info.nickname}}

{{itemc.user_name}}

回復 {{itemc.comment_user_info.nickname}}

附件

{{itemf.name}}

{{itemc.created_at}}
打賞
已打賞¥{{itemc.reward_price}}
{{itemc.like_count}}
{{itemc.showReply ? '取消回復' : '回復'}}
刪除
回復
回復
查看更多
打賞
已打賞¥{{reward_price}}
2222
{{like_count}}
{{collect_count}}
添加回復 ({{post_count}})

相關(guān)推薦

快速安全登錄

使用微信掃碼登錄
{{item.label}} 加精
{{item.label}} {{item.label}} 板塊推薦 常見問題 產(chǎn)品動態(tài) 精選推薦 首頁頭條 首頁動態(tài) 首頁推薦
取 消 確 定
回復
回復
問題:
問題自動獲取的帖子內(nèi)容,不準確時需要手動修改. [獲取答案]
答案:
提交
bug 需求 取 消 確 定
打賞金額
當前余額:¥{{rewardUserInfo.reward_price}}
{{item.price}}元
請輸入 0.1-{{reward_max_price}} 范圍內(nèi)的數(shù)值
打賞成功
¥{{price}}
完成 確認打賞

微信登錄/注冊

切換手機號登錄

{{ bind_phone ? '綁定手機' : '手機登錄'}}

{{codeText}}
切換微信登錄/注冊
暫不綁定
CRMEB客服

CRMEB咨詢熱線 咨詢熱線

400-8888-794

微信掃碼咨詢

CRMEB開源商城下載 源碼下載 CRMEB幫助文檔 幫助文檔
返回頂部 返回頂部
CRMEB客服