7b2主题美化-手机底部菜单美化

样式1.代码放到css样式

/*手机版*/
 @media screen and (max-width: 768px) {
     /*关闭手机端来源文章*/
     #page .entry-header .single-from{
         display: none;
     }
     .box, .side-fixed{
        box-shadow: none;
     }
     .post-list-cats a{
         margin-bottom: 0!important;
         padding-bottom: 0!important;
     }
     
     .post-list .module-title{
         font-size: 22px!important;
     }
     /*手机端下载圆角*/
     .download-list{
         border-radius: 20px!important;
     }
     
     /*底部菜单*/
    .mobile-footer-menu.footer-fixed {
        background: rgba(255, 255, 255, 0.9)!important;
        border-radius: 12px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 90%;
        bottom: 10px!important;
    }
    .mobile-footer-menu a b {
        font-weight: 100;
    }
    .mobile-footer-center {
        padding: 10px;
    }
    .mobile-footer-menu .mobile-footer-center button i {
        right: -30%;
        position: absolute;
        line-height: 40px!important;
        height: 40px!important;
        border-radius: 50%!important;
        margin-top: -40px;
    }
    .mobile-footer-menu.footer-down {
        transform: translate(0,140%)!important;
    }
    
     /*手机菜单下拉背景圆角*/
     .top-menu-ul>li.depth-0 > a i.b2-arrow-down-s-line{
         border-radius: 100%;
         height: 20px;
         width: 20px;
         right: 2px;
         top: 2px;
         line-height: 20px;
     }

样式2.代码放入你的css样式

@media screen and (max-width:768px) {
	.mobile-footer-menu.footer-fixed {
		border-radius: 50px;
		margin: 0 auto;
		left: 0;
		right: 0;
		width: 95%;
		bottom: 10px !important;
		box-shadow: 0px 3px 5px 5px rgb(16 16 16/10%)
	}
	.mobile-footer-menu .mobile-footer-center button i {
		right: -30%;
		position: absolute;
		line-height: 40px !important;
		height: 40px !important;
		border-radius: 50% !important;
		margin-top: -36px
	}
	.mobile-footer-menu.footer-down {
		transform: translate(0, 140%) !important
	}
}

 

温馨提示:本文于2022-07-11最后更新,如有失效请联系!转载请注明本文链接:https://www.qqorg.com/161.html
© 版权声明
THE END
喜欢就支持一下吧
点赞11赞赏 分享
评论 抢沙发

请登录后发表评论