【发布时间】:2022-01-05 11:17:48
【问题描述】:
我正在使用 vue 开发一个应用程序。 但是,我不想为一页上的背景图像设置黑白,也不想为其上方的元素设置黑白,而是自动设置,整体变为黑白。 有什么办法解决吗??
//template
<div class="blank"> //root element -> I set the background image here
<div class="container"> // I don't want to set mix-blend-mode here.
...
</div>
</div>
style
.blank {
display: flex;
justify-content: center;
height: 659px;
background: url('../../assets/images/bg_gray.png') 100%;
mix-blend-mode: luminosity;
background-size: cover;
& .container {
padding: 0 16px;
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 0;
【问题讨论】:
标签: html css sass background-image mix-blend-mode