免费资源 自行研究,一个简单的样式 .
图片自己设计在/wp-content/themes/ripro/parts/home-mode/slider.php或/slider2.php中 找到轮播最大的div 在最大的div内 添加 以下代码 :
将下面的css添加到div.css中
/*.toptu换成你自己的banner最大div的class*/
/*十二堂资源网 www.12tang.com*/
.toptu .banner-tip{
position: relative;
/* width: 1680px; */
height: 63px;
margin: 0 auto;
float: right;
z-index: 9;
}
/*.toptu换成你自己的banner最大div的class*/
.toptu .banner-tip a{
display: block;
position: absolute;
margin-right: 118px;
top: 0;
right: 12px;
width: 268px;
height: 63px;
background-image: url(//img.a8ku.cn/2020/03/13/9a40311be08eb.png);
background-repeat: no-repeat;
background-position: center center;
-webkit-background-size: cover;
background-size: cover;
}
效果: