简洁漂亮的广告展示代码

南图
2020-05-11 / 0 评论 / 2,531 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年04月13日,已超过1318天没有更新,若内容或图片失效,请留言反馈。

!!!

效果图

南图博客

代码如下

<!--图片广告区域开始-->
<div style="background-color:#fff;box-shadow:0px 0px 10px #dedede;padding:5px;margin-top:5px;margin-bottom:5px;">

&lt;!--
&lt;h3 class="fly-panel-title" style="border-bottom:1px dotted #e2e2e2;margin-bottom:10px;"&gt;
    赞助商广告 &lt;a style="float:right;color:#dedede;" href="https://www.xiaoxinjcw.cn/about/ad.html" target="_blank" onmouseover="this.style.color='#F00'" onmouseout="this.style.color='#dedede'"&gt;广告招商&lt;/a&gt; 
&lt;/h3&gt;

--> <a class="adplan" data-id="15" style="display:block;width:100%;margin-bottom:10px;" rel="nofollow" target="_blank" href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" title="广告联系q:460876667|过期时间:永久"> <img src="http://www.xyuzy.com/gge/gg.png" style="max-height:70px;width:100%;border-radius:4px;" width="644" height="70" title="" align="" alt="" /></a> <!--图片广告区域结束-->

                         &lt;!--顶部双排广告第二行--&gt;

<style>

#nr{
    font-size:20px;
    margin: 0;
    background: -webkit-linear-gradient(left,
        #ffffff,
        #ff0000 6.25%,
        #ff7d00 12.5%,
        #ffff00 18.75%,
        #00ff00 25%,
        #00ffff 31.25%,
        #0000ff 37.5%,
        #ff00ff 43.75%,
        #ffff00 50%,
        #ff0000 56.25%,
        #ff7d00 62.5%,
        #ffff00 68.75%,
        #00ff00 75%,
        #00ffff 81.25%,
        #0000ff 87.5%,
        #ff00ff 93.75%,
        #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: masked-animation 2s infinite linear;
}
@keyframes masked-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -100%, 0;
    }
}

</style>

&lt;div style="background-color:#333;border-radius:25px;box-shadow:0px 0px 5px #f200ff;padding:5px;margin-top:10px;margin-bottom:0px;"&gt;
    &lt;marquee&gt;
    &lt;b id="nr"&gt;公告:欢迎来到晓新教程网 - 一家专业的热门资源聚合平台!晓新教程网:www.xiaoxinjcw.cn &lt;/b&gt; &lt;/marquee&gt;
&lt;/div&gt;

<!--顶部双排广告第二行-->
<style>
.txtguanggao{width: 100%;overflow: hidden;display: block;box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);}.txtguanggao a{width: 24.5%;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: 47.96%;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;}}
</style>

&lt;div class="txtguanggao"&gt;
    &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; &lt;a href="https://www.xiaoxinjcw.cn/go.php/?url=https://www.xiaoxinjcw.cn/ad.html" target="_blank" rel="nofollow" class="dh"&gt;文字广告火爆招租&lt;/a&gt; 
&lt;/div&gt;

</div>
<!--文字广告结束-->

0

评论 (0)

取消