网站下载按钮代码(自定义下载按钮代码)
类型:压缩文件|已下载:17|下载方式:免费下载
立即下载
Hello,大家好,我是小编,之前写了很多广告代码模板,包括引导页源码,相信很多人也在使用,本次给大家分享一个前段时间写的文章底部下载资源按钮代码给大家,几个月之前写的,写好以后忘记发布,今天想到就发布一下吧!
需要几个下载按钮,都可以,自行复制或删除a标签
下方是对应css和html代码,自行复制放到需要展示的地方即可,不懂可联系小编哥协助修改(免费协助)
<style> .tp-down-box{ width: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; } .down-btn { letter-spacing: 0.1em; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 45px; width: 23%; max-width: 160px; text-decoration: none; text-transform: uppercase; margin: 5px; } .down-btn:hover { text-decoration: none; } .tp-down-btn { --uismLinkDisplay: var(--smLinkDisplay, inline-flex); display: var(--uismLinkDisplay); color: #000; border: 2px solid #000; border-radius: 5px; position: relative; transition-duration: 0.4s; overflow: hidden; text-align: center; } .tp-down-btn::before, .tp-down-btn span{ margin: 0 auto; transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1); transition-duration: 0.4s; } .tp-down-btn:hover{ background-color: #000; } .tp-down-btn:hover span{ -webkit-transform: translateY(-400%) scale(-0.1,20); transform: translateY(-400%) scale(-0.1,20); } .tp-down-btn::before{ content: attr(data-sm-link-text); color: #FFF; position: absolute; left: 0; right: 0; margin: auto; -webkit-transform: translateY(500%) scale(-0.1,20); transform: translateY(500%) scale(-0.1,20); } .tp-down-btn:hover::before{ letter-spacing: 0.05em; -webkit-transform: translateY(0) scale(1,1); transform: translateY(0) scale(1,1); } @media screen and (max-width: 1198px){ .down-btn{ width: 45%; } }</style>
网站下载按钮代码
<div class="tp-down-box"> <a href="#" class="down-btn tp-down-btn" data-sm-link-text="点击下载" target="_blank"><span>蓝奏网盘</span></a> <a href="#" class="down-btn tp-down-btn" data-sm-link-text="点击下载" target="_blank"><span>天翼网盘</span></a> <a href="#" class="down-btn tp-down-btn" data-sm-link-text="点击下载" target="_blank"><span>百度网盘</span></a> <a href="#" class="down-btn tp-down-btn" data-sm-link-text="点击下载" target="_blank"><span>uuzzw</span></a> </div>
还没有评论,来说两句吧...