7B2顶部导航和底部美化

也没啥内容,个人比较喜欢圆角,就把主题导航栏和底部改成圆角了,没做别的更改,为了防止更新主题后代码被覆盖,我使用的是官方提供的子主题

使用方法

找到网站存放子主题的文件夹,将以下代码拷贝到“style.css”文件中

/*底部页脚*/
.footer {
    width: 98%!important;
    margin: auto;
}
.site-footer-nav {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/*顶部菜单*/
.site-header-in {
    width: 98%!important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    
}
.site-header.mg-b.social-top {
    margin: auto;
    width: 98%!important;
    margin-bottom: 16px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.social-top .header {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
/*手机端适应圆角*/
@media screen and (max-width: 768px)
{
.header-banner-left {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
.social-top .header-banner-content
{
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
.social-top .header-banner{
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
}

/*手机二级打开菜单适应*/
@media screen and (max-width: 768px)
{
.header .mobile-box {
    width: 68%;  /*宽度待修改*/
}
.social-top .show-menu-box .header-logo {
    padding-left: 31%!important;
}
.mobile-box.show-menu-box {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.social-top .mobile-box .header-logo
{
    margin-left: 0px!important;
}

.mobile-footer-menu.footer-fixed {
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0px 1px 5px 0px rgb(0 0 0 / 33%);
    border-radius: 12px;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 90%;
    bottom: 10px!important;
    backdrop-filter: blur(10px);
}
}
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 共17条
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片
    • 头像钟意0
    • 头像没有楼的楼长0
    • 头像没有楼的楼长0
    • 头像没有楼的楼长0
    • 头像没有楼的楼长0
    • 头像小饿0
    • 头像TeacherDu0