蒙层
利用z-index:
.mui-backdrop-other { position: fixed; top: 44px; right: 0; bottom: 0; left: 0; z-index: 2; background-color: rgba(0, 0, 0, .3); }
利用伪元素做蒙层:
.element { position: relative; } .element:after { content: "哈哈哈,我是遮罩"; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 100px; background-color: rgba(0, 0, 0, .6); color: #fff; text-align: center; }
转载于:https://www.cnblogs.com/ooo0/p/6617439.html
最后
以上就是受伤煎饼最近收集整理的关于css 蒙层利用伪元素做蒙层:的全部内容,更多相关css内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复