WordPress广告位美化

演示图

[hidecontent type="reply"]
<div class="yfx_ads">
    <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
    </li>15资源网
    <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
    </li>
    <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
    </li>
    <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt
          ="115资源网_到期时间:"></a>
    </li>
    <li>
       <a href="ttps://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
      </li>
      <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
      </li>
      <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
      </li>
      <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
      </li>
      <li>
        <a href="https://www.115zy.com/" target="_blank"><img src="https://www.115zy.com/images/2021/07/29/2021063017183653.png" alt="115资源网_到期时间:"></a>
      </li>
    </div>
[/hidecontent]

css代码

.yfx_ads {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-top: 10px;
    margin-bottom: 10px !important;
}
.yfx_ads li {
    margin: 5px 0;
    padding-left: 15px;
    flex: 0 0 33.33344%;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
       list-style: none;
}
.yfx_ads a {
    position: relative;
    display: block;
    float: left;
}
.yfx_ads a:before {
    position: absolute;
    content: " ";
    width: 26px;
    height: 1pc;
    background: url(https://s3.bmp.ovh/imgs/2021/08/748b05991e59fe63.png);
    right: 0;
    font-size: 9pt;
    text-align: center;
    bottom: 0;
    color: #fff;
}
@media screen and (max-width: 800px) { .yfx_ads{display:none; }
}