css 微信支付宝打赏代码

180it 2020-02-12 PM 264℃ 0条

css 微信支付宝打赏代码:

<style>
  /* 打赏 */
.reward {
 padding: 5px 0
}
 
.reward .reward-notice {
 font-size: 15px;
 line-height: 14px;
 margin: 15px auto;
 text-align: center
}
 
.reward .reward-button {
 font-size: 28px;
 line-height: 58px;
 position: relative;
 display: block;
 width: 60px;
 height: 60px;
 margin: 0 auto;
 padding: 0;
 -webkit-user-select: none;
 text-align: center;
 vertical-align: middle;
 color: #fff;
 border: 1px solid #0087b4;
 border-radius: 50%;
 background: #0087b4;
 background: -webkit-gradient(linear,left top,left bottom,color-stop(100%,#2989d8),color-stop(100%,#207cca));
 background: -webkit-linear-gradient(top,#2989d8 100%,#207cca 100%);
 background: linear-gradient(to bottom,#2989d8 100%,#207cca 100%)
}
 
.reward .reward-code {
 position: absolute;
 top: -350%;
 left: 21%;
 display: none;
 width: 535%;
 height: 275%;
 margin-left: -265%;
 padding: 15px;
 border: 1px solid #e6e6e6;
 background: #fff;
 box-shadow: 0 1px 1px 1px #efefef
}
 
.reward .reward-button:hover .reward-code {
 display: block
}
 
.reward .reward-code span {
 display: inline-block;
 width: 150px;
 height: 150px
}
 
.reward .reward-code span.alipay-code {
 float: left
}
 
.reward .reward-code span.alipay-code a {
 padding: 0
}
 
.reward .reward-code span.wechat-code {
 float: right
}
 
.reward .reward-code img {
 display: inline-block;
 float: left;
 width: 150px;
 height: 150px;
 margin: 0 auto;
 border: 0
}
 
.reward .reward-code b {
 font-size: 14px;
 line-height: 26px;
 display: block;
 margin: 0;
 text-align: center;
 color: #666
}
 
.reward .reward-code b.notice {
 line-height: 2rem;
 margin-top: -1rem;
 color: #999
}
 
.reward .reward-code:after,.reward .reward-code:before {
 position: absolute;
 content: '';
 border: 10px solid transparent
}
 
.reward .reward-code:after {
 bottom: -19px;
 left: 50%;
 margin-left: -10px;
 border-top-color: #fff
}
 
.reward .reward-code:before {
 bottom: -20px;
 left: 50%;
 margin-left: -10px;
 border-top-color: #e6e6e6
}
  </style>

<div class="reward">
 <div class="reward-button">
 赏 
 <span class="reward-code">
 <span class="alipay-code">
 <img width="250" height="250" class="alipay-img wdp-appear" src="http://tts.hao828.com/DaShang/picture/alipayimg.png" alt="支付宝打赏" /><b>支付宝打赏</b>
 </span>
 <span class="wechat-code">
 <img width="250" height="250" class="wechat-img wdp-appear" src="http://tts.hao828.com/DaShang/picture/weipayimg.png" alt="微信打赏" /><b>微信打赏</b>
 </span>
 </span>
 </div>
 <p class="reward-notice">如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!</p>
</div>
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

css 微信支付宝打赏代码