当前位置:首页>网站建设>7b2美化教程-首页文章边框添加背景条

7b2美化教程-首页文章边框添加背景条

释放双眼,带上耳机,听听看~!

修改b2/Modules/Templates/Modules/Posts.php  146行下面添加以下代码

<div class="item-author">
                <div class="item-bg">
                    <i class="thumb thumb-a"></i>
                </div> 
            </div>

css样式

.b2_gap>li .item-in, .shop-list-item, .shop-normal-item-in, .user-search-list li>div, .home-collection .home-collection-content, .post-3.post-3-li-dubble .b2_gap>li .item-in, .item-in {
    overflow: hidden;
    transition: all .3s ease-in-out;
    padding: 10px;
    border-radius: 15px;
}
.post-module-thumb {
    position: relative;
    height: 0;
    overflow: hidden;
    z-index: 1;
}
.item-author .item-bg .thumb-a {
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}
.item-author .item-bg .thumb {
    padding-top: 50%;
    position: absolute;
    left: -31.25px;
    right: -31.25px;
    top: -31.25px;
    width: auto;
}
.thumb {
    display: block;
    width: 100%;
    height: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all .2s;
}
.item-author .item-bg::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0%;
    padding-top: 11%;
    background-image: -webkit-linear-gradient(top,rgba(255,255,255,0.7) 0%,#FFFFFF 100%);
    background-image: linear-gradient(180deg,rgba(255,255,255,0.7) 0%,#FFFFFF 100%);
}
.item-author .item-bg::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* padding-top: 58%; */
    /* background-color: #fff; */
    z-index: 1;
}
.item-author .item-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 40%;
    overflow: hidden;
}
欢迎访问秀主题博客,分享简单实用WP教程
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
网站建设

b2教程-首页文章缩略图鼠标悬浮下滑特效

2023-2-10 9:33:28

网站建设

b2美化教程-用户等级添加底色

2023-2-13 15:19:57

温馨提示:

1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:971318156@qq.com,我们将第一时间处理!

2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。

3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索