子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件

子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件-狗大户博客
子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件
此内容为付费资源,请付费后查看
星元10
立即购买
您当前未登录!建议登陆后购买,可保存购买订单
付费资源
已售 1
温馨提示:本文最后更新于2024-01-13 13:05:50,某些文章具有时效性,若有错误或已失效,请在下方留言。

效果图

图片[1]-子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件-狗大户博客

手机端更新

图片[2]-子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件-狗大户博客

添加css

   /*新年悬挂开始*/

@keyframes lampLine-38cc6824 {
    0% {
        transform: rotate(10deg)
    }

    to {
        transform: rotate(-10deg)
    }
}

.rabbit-doll {
    width: 200px;
    height: 200px;
    display: inline-block;
    background: url(/pic/long.webp) no-repeat 50%/100%;
    vertical-align: middle;
    position: absolute;
    left: 80%;
    top: 25px;
    z-index: 50;
    cursor: pointer;
    animation: lampLine-38cc6824 1.2s ease-in-out 0s infinite alternate;
    margin-left: -1px;
    transform-origin: 50% 0;
    pointer-events:none;
}
          /*新年悬挂结束*/
/**用户排行榜开始*/
         .hot-top    .left {
                float: left;
            }
.hot-top .right .top-ul li a h3 {

    white-space: nowrap;
}
       .hot-top      .right {
                float: right;
            }

            img {
                border: none;
            }

            .hot-top {
                width: 100%;
                background: var(--main-bg-color);
                margin-bottom: 25px;
                padding: 22px 20px;
                position: relative;
                height: 147px;
                overflow: hidden;
                border-radius: 10px 10px 10px 10px;
            }

            .hot-top .tg-ph {
                background-size: 100% 100%;
                position: absolute;
                right: 0;
                top: 0;
                z-index: 2;
                display: block;
                width: 60px;
                height: 60px;
            }

            .hot-top .left {
                height: 100%;
            }

            .hot-top .left a {
                display: block;
                width: 121px;
                height: 45px;
                line-height: 45px;
                background: #f6f6f6;
                text-align: center;
                font-size: 15px;
                color: #989898;
                margin-bottom: 13px;
                cursor: pointer;
                border-radius: 10px;
            }

            .hot-top .left a:last-child {
                margin-bottom: 0;
            }

            .hot-top .left .hover {
                background: #2b21fa;
                color: #FFF;
                position: relative;
            }

            .hot-top .left .hover:after {
                content: "";
                width: 0;
                height: 0;
                border-top: 7px solid transparent;
                border-bottom: 7px solid transparent;
                border-left: 10px solid #2b21fa;
                position: absolute;
                top: 15.5px;
                right: -10px;
                z-index: 1;
            }

            .hot-top .right-main {
                height: 100%;
                    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
                margin-bottom: 30px;
            }

            .hot-top .right-main:last-child {
                margin-bottom: 0px;
            }

            .hot-top .right-overflow {
                transition: 0.4s all;
                transform: translateY(0);
            }

            .hot-top .right {
                float: left;
                width: calc( 100% - 147px);
                margin-left: 26px;
                height: 100%;
            }

            .hot-top .right .top-ul {
                height: 130px;
                
            }

            .hot-top .right .top-ul li {
                width: 78px;
                float: center;
                margin:0px 20px;
                display:inline-block;
            }

            .hot-top .right .top-ul li:nth-child(10n) {
                margin-right: 0;
            }

            .hot-top .right .top-ul li a {
                display: block;
            }

            .hot-top .right .top-ul li a .list-img {
                width: 100%;
                height: 78px;
                line-height: 78px;
                text-align: center;
                border-radius: 10px;
            }

            .hot-top .right .top-ul li a .list-img img {
                width: 100%;
            }

            .hot-top .right .top-ul li a .list-img img:hover {
                opacity: 0.8;
            }

            .hot-top .right .top-ul li a h3 {
                margin-top: 7px;
                font-size: 13px;
                line-height: 25px;
                height: 25px;
                overflow: hidden;
                width: 100%;
                text-align: center;
            }

            .new-position {
                height: 780px;
            }

            .new-position .left {
                height: 100%;
                width: calc( ( 100% - 13px ) * 0.36 );
            }

            .new-position .right {
                width: calc( ( 100% - 13px ) * 0.64 );
                height: 100%;
                background: #FFF;
                padding: 17px 28px;
            }

            .new-position .layui-carousel > [carousel-item] > * {
                background: #FFF;
            }

            .new-position #index-lb {
                height: 300px;
            }

            .new-position #index-lb div div img {
                width: 100%;
                min-height: 100%;
            }

            .new-position .index-login {
                background: #FFF;
                margin-top: 13px;
                height: calc( 767px - 300px);
                padding: 25px 33px;
                position: relative;
            }

            span.note {
                position: absolute;
                top: 10px;
                right: -50px;
                z-index: 1;
                width: 140px;
                height: 20px;
                background: #2c40a0;
                color: #fff;
                line-height: 20px;
                -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
                text-align: center;
                font-size: 12px;
            }
img.rela {
    position: absolute;
    left: 52px;
    z-index: 2;
    /* right: 50px; */
    top: 58px;
    height: 25px;
    width: 25px;
}

 /*头像呼吸光环和鼠标悬停旋转放大开始*/
             .list-img img.avatar {
                border-radius: 50%;
                animation: light 4s ease-in-out infinite;
                transition: 2s;
                
            }

          .list-img  img.avatar:hover {
                transform: scale(1) rotate(720deg);
            }
        }

        /*头像呼吸光环和鼠标悬停旋转放大结束*/
            /**用户排行榜结束*/

把附件里面的代码加到zibll/index.php里

放在下方代码的后面

<main role="main" class="container">
图片[3]-子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件-狗大户博客

编辑zibll/inc/functions/zib-header.php

在58行插入代码

 <div class="rabbit-doll"></div>
图片[4]-子比主题模板添加一个首页顶部新注册用户和会员用户展示代码+动态挂件-狗大户博客
© 版权声明
THE END
喜欢就支持一下吧
点赞0投币 分享
评论 共1条

请登录后发表评论