一段漂亮的文字AD标签代码分享

一段漂亮的文字AD标签代码分享插图

一段漂亮的会按照顺序自动跳转切换的标签AD代码,同时也是自适应大小布局,觉得挺好看的,就给大家分享出来吧!

HTML:

<div class="topics visible-lg-block"><div class="topics-cont"> 
		<a href="https://soujiz.com/jishu" target="_blank">
		<span>ECS</span> 云服务器</a> 
		<a href="https://www.soujiz.com" target="_blank">
		<span>CDN</span> 又拍云OSS</a> 
		<a href="https://www.soujiz.com/" target="_blank"><span>blog</span> 大雄搜集站</a>
		<a href="#" target="_blank"><span>Redis</span> 云数据库</a> 
		<a href="#" target="_blank"><span>CDN</span> 内容分发</a> 
		<a href="#" target="_blank"><span>OSS</span> 对象存储</a> 
		<a href="#" target="_blank"><span>SLB</span> 负载均衡</a> 
		<a href="#" target="_blank"><span>DNS</span> 云解析</a> 
		<a href="https://www.soujiz.com/wordpress" target="_blank">
		<span>WP</span> zibll子比主题</a> 
		<a href="#" target="_blank"><span>MAIL</span> 企业邮箱</a> 
		<a href="#" target="_blank"><span>WAF</span> 应用防火墙</a> 
		<a href="#" target="_blank"><span>DDoS</span> 高防</a> 
		<a href="#" target="_blank"><span>SMS</span> 短信包</a> 
		<a href="#" target="_blank"><span>MK</span> 云市场</a> 
		<a href="#" target="_blank"><span>XIN</span> 心选</a> 
		<a href="#" target="_blank"><span>IM</span> 商标注册</a> 
		<a href="https://www.soujiz.com" target="_blank"><span>JZ</span> 自营</a></div></div>

CSS样式代码:

	/* 大雄搜集站-www.soujiz.com */
			.topics {
			  background:#fff;
			  border-radius:3px;
			  overflow:hidden
			}
			.topics .topics-cont a {
			  display:inline-block;
			  white-space:nowrap;
			  padding:2px 5px;
			  border-radius:3px;
			  margin:10px 0 0 10px;
			  font-size:13px;
			  line-height:1.8;
			  color:#656565
			}
			.topics .topics-cont a span {
			  color:#fe5b34;
			  font-family:"Microsoft YaHei",Helvetica,Arial,"WenQuanYi Micro Hei",SimSun,sans-serif
			}
			.topics .topics-cont a:hover {
			  background-color:#d806da;
			  background-image:-webkit-linear-gradient(left,#9796f0 0,#d806da 50%,#ff5757 100%);
			  background-image:linear-gradient(to right,#9796f0 0,#d806da 50%,#ff5757 100%);
			  color:#fff
			}
			.topics .topics-cont a:hover span {
			  color:#fff
			}
			.topics .topics-cont a:nth-child(1),.topics .topics-cont a:nth-child(2),.topics .topics-cont a:nth-child(3),.topics .topics-cont a:nth-child(4),.topics .topics-cont a:nth-child(5),.topics .topics-cont a:nth-child(6),.topics .topics-cont a:nth-child(7),.topics .topics-cont a:nth-child(8) {
			  animation:topic-animate 16s ease infinite
			}
			.topics .topics-cont a:nth-child(1) span,.topics .topics-cont a:nth-child(2) span,.topics .topics-cont a:nth-child(3) span,.topics .topics-cont a:nth-child(4) span,.topics .topics-cont a:nth-child(5) span,.topics .topics-cont a:nth-child(6) span,.topics .topics-cont a:nth-child(7) span,.topics .topics-cont a:nth-child(8) span {
			  animation:topic-animate-span 16s ease infinite
			}
			.topics .topics-cont a:nth-child(2) {
			  animation-delay:2s
			}
			.topics .topics-cont a:nth-child(2) span {
			  animation-delay:2s
			}
			/* 大雄搜集站-www.soujiz.com */
			.topics .topics-cont a:nth-child(3) {
			  animation-delay:4s
			}
			.topics .topics-cont a:nth-child(3) span {
			  animation-delay:4s
			}
			.topics .topics-cont a:nth-child(4) {
			  animation-delay:6s
			}
			.topics .topics-cont a:nth-child(4) span {
			  animation-delay:6s
			}
			.topics .topics-cont a:nth-child(5) {
			  animation-delay:8s
			}
			.topics .topics-cont a:nth-child(5) span {
			  animation-delay:8s
			}
			.topics .topics-cont a:nth-child(6) {
			  animation-delay:10s
			}
			.topics .topics-cont a:nth-child(6) span {
			  animation-delay:10s
			}
			.topics .topics-cont a:nth-child(7) {
			  animation-delay:12s
			}
			.topics .topics-cont a:nth-child(7) span {
			  animation-delay:12s
			}
			/* 大雄搜集站-www.soujiz.com */
			.topics .topics-cont a:nth-child(8) {
			  animation-delay:14s
			}
			.topics .topics-cont a:nth-child(8) span {
			  animation-delay:14s
			}
			.topics .topics-cont:hover a,.topics .topics-cont:hover a span {
			  animation:none
			}
			@keyframes topic-animate {
			  0%,12.5% {
			  background:#fff;
			  color:#555
			}
			10%,2% {
			  background-color:#d806da;
			  background-image:-webkit-linear-gradient(left,#9796f0 0,#d806da 50%,#ff5757 100%);
			  background-image:linear-gradient(to right,#9796f0 0,#d806da 50%,#ff5757 100%);
			  color:#fff
			}
			
			}@keyframes topic-animate-span {
			  0%,12.5% {
			  color:#fe5b34
			}
			10%,2% {
			  color:#fff
			}
			}.topics .topics-cont {
			  max-height:90px;
			  overflow:hidden
			}

© 版权声明
THE END
喜欢点个赞支持一下吧
点赞0赏币 分享
评论交流 抢沙发

请登录后发表评论

    暂无评论内容