Home > Web Front-end > Vue.js > body text

How to implement mask layer in vue.js

王林
Release: 2021-10-11 15:38:43
Original
7297 people have browsed it

Vue.js method to implement mask layer: [div.popContainer {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0 , 0.3);}].

How to implement mask layer in vue.js

The operating environment of this article: windows10 system, vue.js 2.9, thinkpad t480 computer.

vue implements a simple mask layer effect:

The specific code is as follows:

<div class=&#39;popContainer&#39;></div>


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

Recommended learning: php training

The above is the detailed content of How to implement mask layer in vue.js. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template