效果
后台-自定义-顶部全区块-自定义HTML
<div class="n_banner_inner">
<div class="img-info">!
<div class="info">也想出现在这里?
<a rel="nofollow noopener noreferrer" href="转跳Url" target="_blank">联系我们</a>吧</div>
</div>
<a href="前往Url" target="_blank" rel="noopener noreferrer">
<div class="Banner-adTag">广告</div>
<img class="tirr" src="https://www.haigs.cc/wp-content/uploads/2023/06/2023061715004338.png" alt="信息">
</a>
</div>
<style>
/*定位*/
.n_banner_inner {
position: relative;
}
/*提示信息*/
.n_banner_inner .img-info {
position: absolute;
right: 12px;
top: 9px;
padding: 0;
text-align: right;
color: #fff;
}
.n_banner_inner .img-info i {
position: relative;
display: inline-block;
color: #007bff;
font-size: 20px;
line-height: 19px;
text-align: center;
z-index: 9;
font-style: inherit;
}
.n_banner_inner .img-info .info {
position: absolute;
bottom: 5px;
right: 0;
width: 0;
padding: 5px 0;
overflow: hidden;
background: #007bff;
border-radius: 10px;
line-height: 10px;
text-align: center;
font-size: 10px;
color: #fff;
white-space: nowrap;
-webkit-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-moz-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-ms-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-o-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
}
.n_banner_inner .img-info .info a {
color: #fff;
}
.n_banner_inner .tirr {
max-width: 100%;
height: auto;
transition: 0.5s;
border-radius: 5px;
}
/*触发Hover*/
.n_banner_inner:hover .info {
width: auto;
padding: 5px 23px 5px 12px;
-webkit-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-moz-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-ms-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-o-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
font-size: 12px;
z-index: 1;
}
.n_banner_inner img:hover {
filter: brightness(50%);
}
/*出发声明hover*/
.n_banner_inner .info:hover a {
color: red;
text-decoration: none;
}
/*左下角广告*/
.n_banner_inner .Banner-adTag {
position: absolute;
left: 5px;
bottom: 5px;
width: 50px;
border: 1px solid #ebebeb;
border-radius: 3px;
color: #ebebeb;
opacity: 0.5;
font-size: 12px;
line-height: 20px;
text-align: center;
}
@media screen and (max-width: 768px) {
.n_banner_inner .img-info {
display: none;
}
}
.container {
width: 100%;
}
.zib-widget {
clear: both;
background: var(--main-bg-color);
padding: 0px;
box-shadow: 0 0 0px var(--main-shadow);
border-radius: var(--main-radius);
margin-bottom: 20px;
}
</style>
新增引入会员购买页弹窗
新增文字样式
<div class="n_banner_inner">
<div class="img-info">!
<div class="info">也想出现在这里?
<a rel="nofollow noopener noreferrer" href="https://wpa.qq.com/msgrd?v=3&uin=82719519&site=qq&menu=yes&jumpflag=1" target="_blank">联系我们</a>吧</div>
</div>
<a class="pay-vip" href="javascript:;">
<div class="Banner-adTag">vip</div>
<img max-width: 100%; height: auto class="tirr" src="https://yp.xttwz.top/d/tygry/tb/wb/122.jpg" alt="信息">
</a>
</div>
<a href="https://curl.qcloud.com/ir7zQUo4" target="_blank" rel="noopener noreferrer">
<img max-width:100%; height:auto class="tirr" src="https://yp.xttwz.top/d/tygry/tb/wb/119.jpg" alt="信息">
</a>
<a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="noopener noreferrer">
<img max-width: 100%; height: auto class="tirr" src="https://yp.xttwz.top/d/tygry/tb/wb/120.png" alt="信息">
</a>
<style>
/*定位*/
.n_banner_inner {
position: relative;
}
/*提示信息*/
.n_banner_inner .img-info {
position: absolute;
right: 12px;
top: 9px;
padding: 0;
text-align: right;
color: #fff;
}
.n_banner_inner .img-info i {
position: relative;
display: inline-block;
color: #007bff;
font-size: 20px;
line-height: 19px;
text-align: center;
z-index: 9;
font-style: inherit;
}
.n_banner_inner .img-info .info {
position: absolute;
bottom: 5px;
right: 0;
width: 0;
padding: 5px 0;
overflow: hidden;
background: #007bff;
border-radius: 10px;
line-height: 10px;
text-align: center;
font-size: 10px;
color: #fff;
white-space: nowrap;
-webkit-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-moz-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-ms-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-o-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
}
.n_banner_inner .img-info .info a {
color: #fff;
}
.n_banner_inner .tirr {
max-width: 100%;
height: auto;
transition: 0.5s;
border-radius: 5px;
}
/*触发Hover*/
.n_banner_inner:hover .info {
width: auto;
padding: 5px 23px 5px 12px;
-webkit-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-moz-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-ms-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
-o-transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
transition: all 0.2s cubic-bezier(0, 0.34, 0.71, 1.26) !important;
font-size: 12px;
z-index: 1;
}
.n_banner_inner img:hover {
filter: brightness(50%);
}
/*出发声明hover*/
.n_banner_inner .info:hover a {
color: red;
text-decoration: none;
}
/*左下角广告*/
.n_banner_inner .Banner-adTag {
position: absolute;
left: 5px;
bottom: 5px;
width: 50px;
border: 1px solid #ebebeb;
border-radius: 3px;
color: #ebebeb;
opacity: 0.5;
font-size: 12px;
line-height: 20px;
text-align: center;
}
@media screen and (max-width: 768px) {
.n_banner_inner .img-info {
display: none;
}
}
.container {
width: 100%;
}
.zib-widget {
clear: both;
background: #fff0;
padding: 0px;
box-shadow: 0 0 0px var(--main-shadow);
border-radius: var(--main-radius);
margin-bottom: 20px;
}
</style>
<div class="txtguanggao"><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a><a href="https://www.aliyun.com/" target="_blank" rel="nofollow noopener" class="dh">阿里云2核2G3M服务器99元/年</a><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a><a href="https://qm.qq.com/q/1DrRJt9cbO" target="_blank" rel="nofollow noopener" class="dh">超低价文字广告位招租</a></div><style>/**广告位**/.ad{background:#fff;overflow:hidden;clear:both;border-radius: 6px;}.ad a{margin:5px;display:block;border-radius:3px;}.ad img{max-width:100%;}.ad li{float:left;width:50%;list-style:none;}@media(max-width:999px) {.ad{margin: 0 0 10px 0;}}/**新增文字广告**/.txtguanggao{ width: 100%; overflow: hidden; display: block; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);}.txtguanggao a{ width: calc((100% - 20px) / 4); float: left; border-radius: 2px; line-height: 35.35px; height: 35.35px; text-align: center; font-size: 14px; color: #fff; display: inline-block; background-color: rgb(255, 153, 159); margin: 2.5px; transition-duration: .3s;}.txtguanggao a:nth-child(1) { background-color: #dc3545;}.txtguanggao a:nth-child(2) { background-color: #007bff;}.txtguanggao a:nth-child(3) { background-color: #28a745;}.txtguanggao a:nth-child(4) { background-color: #ffc107;}.txtguanggao a:nth-child(5) { background-color: #28a745;}.txtguanggao a:nth-child(6) { background-color: #ffc107;}.txtguanggao a:nth-child(7) { background-color: #dc3545;}.txtguanggao a:nth-child(8){ background-color: #007bff;}.txtguanggao a:hover{background:#FF2805;color:#FFF}@media screen and (max-width: 1000px) {.txtguanggao a{ width: calc((100% - 10px) / 2); float: left; border-radius: 2px; line-height: 35.35px; height: 35.35px; text-align: center; font-size: 14px; color: #fff; display: inline-block; background-color: rgb(255, 153, 159); margin: 2.5px; transition-duration: .3s;}} @media screen and (min-width: 1000px) { .txtguanggao a{ width: calc((100% - 20px) / 4); }}</style>
本站脚本代码仅供学习交流使用请勿商业运营,严禁从事违法,侵权等任何非法活动,否则后果自负!
© 版权声明
THE END
黑胡椒 48天前0
6666666Whyss 1个月前0
客户端下载链接失效~w1092974544 1个月前0
做什么试试水qazwer 1个月前0
教程很好用,谢谢!qazwer 1个月前0
优秀啊。快给我积分qazwer 1个月前0
哎呀呀哎呀呀