教程简介:
因为我首页是没有板块的,这样的话帖子是什么板块的不点进帖子内就不好分辨。我是站在实用的角度出发,顺便做的好看一些,不是为了花里胡哨所谓的美化。所以不要问我这个怎么美化那个怎么美化,我不会因为我不美化。
相关图片:
教程
/zibll/inc/functions/bbs/inc/posts.php
搜索 zib_bbs_get_posts_mini_list
整合替换下面代码
创建一个css文件把下面css复制进去
.tag-wrapper {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
overflow: hidden;
white-space: nowrap;
transition: width 0.3s ease;
}
.tag-container {
display: inline-flex;
transition: transform 0.3s ease;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
a.liuke-biaoqian.tag-link {
font-size: 10px;
padding: 1px 5px;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
font-weight: 500;
line-height: 20px;
border: none;
outline: none !important;
opacity: 1;
visibility: visible;
margin: 0;
border-radius: 0;
}
a.liuke-biaoqian.tag-link:first-child {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
a.liuke-biaoqian.tag-link:last-child {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
@media (hover: hover) {
.tag-container:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
a.liuke-biaoqian.tag-link:hover {
opacity: 0.8;
}
}
a.liuke-biaoqian.tag-link i {
margin-right: 3px;
}
@media (max-width: 768px) {
a.liuke-biaoqian.tag-link {
font-size: 9px;
padding: 0 4px;
}
}
.forum-title {
position: relative;
padding-right: 80px;
}
.forum-title {
position: relative;
padding-right: 80px;
}
.forum-posts {
position: relative;
}
.plate-badge {
position: absolute;
top: 0;
left: 0;
background-color: #007bff;
color: white !important;
padding: 2px 5px;
font-size: 12px;
line-height: 1.2;
border-radius: 8px 0 8px 0;
display: flex;
align-items: center;
transition: all 0.3s ease;
overflow: hidden;
}
.plate-badge::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255,255,255,0.3);
transition: all 0.3s ease;
}
.plate-badge:hover {
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transform: translateY(-2px);
}
.plate-badge:hover::before {
left: 100%;
}
.plate-icon {
display: inline-flex;
align-items: center;
margin-right: 3px;
transition: transform 0.3s ease;
}
.plate-badge:hover .plate-icon {
transform: scale(1.1);
}
.plate-icon i {
font-size: 12px;
transition: color 0.3s ease;
}
.plate-name {
display: inline-block;
vertical-align: middle;
transition: color 0.3s ease;
}
.plate-badge:hover .plate-name,
.plate-badge:hover .plate-icon i {
color: #f0f0f0;
}
.forum-posts.mini {
padding-top: 20px;
}
@media (max-width: 767px) {
.forum-posts.mini {
padding-top: 20px;
}
}
🎉 恭喜你发现了宝藏导航!>>点此前往<<
👋 感谢您的观看,对您有用就分享出去吧 !
如您有好的资源/素材,可参与创作者激励计划享投稿分成。分成介绍 投稿成功收录,即可获得1-10 元/篇奖励。(重复内容无奖励)
本站代码模板仅供学习交流使用请勿商业运营,严禁从事违法,侵权等任何非法活动,否则后果自负!
© 版权声明
THE END
文章不错?点个赞呗
相关推荐
随机看看好帖需要善于发现
热门圈子总有聊不完的话题
暂无评论内容