vue.js实现遮罩层的方法:【div.popContainer {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0, 0.3);}】。

本文操作环境:windows10系统、vue.js 2.9、thinkpad t480电脑。

vue实现简单的遮罩层效果:

具体代码如下所示:

<div class='popContainer'></div>


div.popContainer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

以上就是vue.js如何实现遮罩层的详细内容,转载自php中文网

点赞(417) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部