子比主题(zibll)手机移动端左侧菜单添加图片背景特效,该效果的教程也很简单,仅需一步就可以实现。
代码
/*手机侧边栏背景图片*/
@media (max-width: 767px){
.mobile-navbar.show,.mobile-navbar.left{
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
cursor: pointer;
background-image:linear-gradient(rgba(255, 255,255,0),rgba(255,255,255, 0.3)),url(https://tc.dhmip.cn/imgs/2023/09/25/52d63a028999f8ae.jpg);}
.mobile-nav-widget .box-body {
background: var(--muted-border-color) !important;}
}
只需要将上方代码,复制粘贴到
更换图片的话替换代码中的图片链接就可以了。
![图片[1]-子比主题(zibll)手机移动端左侧菜单添加图片背景特效-AA源码网 | 源码收藏](https://images.aaym.net/2023/09/20230925225158737-image.png!/format/webp/lossless/true)
本文结束END

© 版权声明
THE END
暂无评论内容