wordpress自定义Html实现自动翻转宣传,侧边小工具适用

效果:

代码

<section id="custom_html-2" class="widget_text widget widget_custom_html mar16-b"> 
<meta charset="utf-8"> 
<!-- <p  align="left"  class="widget-title l1 box-header">欢迎访问SP资源网</p>--> 
<div class="textwidget custom-html-widget"> <aside id="php_text-8" class="widget php_text wow fadeInUp" data-wow-delay="0.3s"> 
<div class="textwidget widget-text"> 
<style type="text/css">
#container-box-1{color:#526372;text-transform:uppercase;width:100%;font-size:16px; line-height:50px;text-align:center}
#flip-box-1{overflow:hidden;height:50px}
#flip-box-1 div{height:50px}#flip-box-1>div>div{color:#fff;display:inline-block;text-align:center;border-radius: 5px;height:50px;width:100%}
#flip-box-1 div:first-child{animation:show 8s linear infinite}
.flip-box-1-1{background-color:#8811ff}
.flip-box-1-2{background-color:#FF7E40}
.flip-box-1-3{background-color:#383838}
.flip-box-1-4{background-color:#007bff}
 .flip-box-1-5{background-color:#008b5d}
.flip-box-1-6{background-color:#ff5b5b}@keyframes show{0%{margin-top:-300px}5%{margin-top:-250px}16.666%
{margin-top:-250px}21.666%{margin-top:-200px}33.332%{margin-top:-200px}38.332%{margin-top:-150px}49.998%
{margin-top:-150px}54.998%{margin-top:-100px}66.664%{margin-top:-100px}71.664%{margin-top:-50px}83.33%
{margin-top:-50px}88.33%{margin-top:0px}99.996%{margin-top:0px}100%{margin-top:300px}}</style>
<div id="container-box-1"> <div class="container-box-1-1">开通VIP会员免费下载所有资源</div> 
<div id="flip-box-1"><div><div class="flip-box-1-1">精品资源</div> </div>
<div><div class="flip-box-1-2">永久更新</div></div> <div><div class="flip-box-1-3">内容全面</div></div>
<div> <div class="flip-box-1-4">无限下载</div></div> <div><div class="flip-box-1-5">优质软件</div></div> 
<div><div class="flip-box-1-6">站长亲测</div></div> <div><div class="flip-box-1-1">会员免费</div></div> </div>
<div class="container-box-1-2">限时特价,终身VIP券后仅需399!</div></div></div> <div class="clear"></div> </aside></div> </section>

版权声明:
作者:老刘
链接:https://winmac.cn/htmlad.html
来源:老刘的部落格
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录