Home  >  Article  >  Web Front-end  >  How to implement mask layer in vue.js

How to implement mask layer in vue.js

王林
王林Original
2021-10-11 15:38:437234browse

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);
}

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!

Statement:
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