7b2美化-标签动态特效

2022-11-16 14:45:01 浏览数 (1)

7b2美化-标签动态特效


以下代码放到后台-模块管理-自定义,(放到你想放置的位置)

代码语言:javascript复制
  <div class="p-painter clear mt-40 mb-40">
    <div class="p-classify-title">
      热门搜索
    </div>
    <div class="p-classify-content dib">
      <a target="_blank" href="/tags/115" class="tag">原创</a>
      <a target="_blank" href="/tags/161" class="tag">女孩子</a>
      <a target="_blank" href="/tags/16495" class="tag">生活</a>
      <a target="_blank" href="/tags/114" class="tag">创作</a>
      <a target="_blank" href="/tags/1354" class="tag">明日方舟</a>
      <a target="_blank" href="/tags/291" class="tag">鬼灭之刃</a>
      <a target="_blank" href="/tags/158" class="tag">命运-冠位指定</a>
      <a target="_blank" href="/tags/919" class="tag">碧蓝航线</a>
      <a target="_blank" href="/tags/236" class="tag">おっぱい</a>
      <a target="_blank" href="/tags/157" class="tag">型月世界</a>
      <a target="_blank" href="/tags/421" class="tag">同人</a>
      <a target="_blank" href="/tags/107" class="tag">东方Project</a>
      <a target="_blank" href="/tags/8058" class="tag">脚掌</a>
      <a target="_blank" href="/tags/9600" class="tag">黑丝袜</a>
      <a target="_blank" href="/tags/1370" class="tag">少女</a>
      <a target="_blank" href="/tags/159" class="tag">命运-冠位指定</a>
      <a target="_blank" href="/tags/1582" class="tag">胡蝶忍</a>
      <a target="_blank" href="/tags/576" class="tag">风景</a>
      <a target="_blank" href="/tags/1498" class="tag">《明日方舟Arknights》</a>
      <a target="_blank" href="/tags/151" class="tag">VOCALOID</a>
    </div>
  </div>

以下代码放到css样式

代码语言:javascript复制
/*自动标签*/
.mb-40 {
  margin-bottom: 40px !important;
}
.mt-40 {
  margin-top: 40px !important;
}
.p-classify-title {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}
.tag {
  padding: 0 10px;
  margin: 10px 0;
  width: 109px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  float: left;
  font-size: 14px;
  font-family: MicrosoftYaHei;
  color: #777;
  border-right: 1px solid #bbb;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tag:hover {
  color: #f5be34;
}
/*高调动效*/
.tag {
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.tag:hover {
  font-size: 22px;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}
@media (min-width: 768px) {
  .home-first-screen .images a strong {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
  }
}

原文来自:小狐狸资源网

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

0 人点赞