漂亮简洁的文字广告投放

阿强分享一个从某博客爬下来的简洁文字广告代码,以下是代码

漂亮简洁的文字广告投放

<div class="Text-Advertising"><!--第1列--><ul class="list-unstyled"><li><a href="https://iooqp.cn/go/?url=https://iooqp.cn/" rel="nofollow noopener" target="_blank"> <span style="color: #ff0033;">阿强爱分享</span> </a></li><li><a href="https://iooqp.cn/go/?url=http://fhw.xiaogangjq.cn/" rel="nofollow noopener" target="_blank"> <span style="color: #ff0033;">阿强爱防红</span> </a></li></ul><!----第2列---8月5---><ul class="list-unstyled"><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #3399cc;">广告8元/月</span> </a></li><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #3399cc;">广告8元/月</span> </a></li></ul><!----第3列---8月5---><ul class="list-unstyled"><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #9933cc;">广告8元/月</span> </a></li><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #9933cc;">广告8元/月</span> </a></li></ul><!----第4列--8月4---><ul class="list-unstyled"><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #0000cc;">广告8元/月</span> </a></li><li><a href="/" rel="nofollow noopener" target="_blank"> <span style="color: #0000cc;">广告8元/月</span> </a></li></ul><!----第5列----><ul class="list-unstyled"><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #ff0033;">广告8元/月</span> </a></li><li><a href="https://iooqp.cn/go/?url=" rel="nofollow noopener" target="_blank"> <span style="color: #ff0033;">广告8元/月</span> </a></li></ul></div>

CSS部分

<style>
.Text-Advertising {
    border-radius: 0px;
    position: relative;
    width: 100%;
    clear: both;
    background: #fff;
    padding: 8px;
    overflow: hidden;
    animation: shine 1s infinite linear;
}

  .Text-Advertising ul{position:relative;float:left;width:20%;z-index: 2}

  .Text-Advertising li{width:100%;text-align:center;font-size:12px;padding:3px 0;}

  .Text-Advertising:after{content:'';position: absolute;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);background:#fff;z-index: 0;}

  .Text-Advertising:before{content:"";position:absolute;left:-200%;width:300%;height:50px;background-image: linear-gradient(0, transparent 20%,rgba(255,255,255,.4) 50%,transparent 80%);background-color:rgba(255,255,255,.4);transform:rotate(-60deg);animation:searchLights 3s ease-in 3s infinite;z-index: 3;pointer-events: none;}
  @keyframes shine {

    0% { background-position: -1px -1px;}

    100% { background-position: -12px -12px;}

}
@keyframes searchLights{0% {left:-200%;top:0} to{left:100%;top:100px}

</style>

 

阿强爱分享
  • 本文由 发表于 2019年9月2日06:48:41
  • 转载请务必保留本文链接:https://iooqp.cn/496.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: