【发布时间】:2019-12-15 22:10:07
【问题描述】:
我创建了我的网站,但我想知道如何在给定的形状上应用或禁用文件管理器。在整个图像上,我想要灰度 98%,在这个形状中它应该是 0%。示例在这里:
有人能告诉我我必须使用什么吗?我认为 :before,:after 或 clip 有一些东西。
编辑:(我知道我不应该灰度父级,但我不知道如何以另一种方式做到这一点)
<template>
<v-parallax dark class="parallax" height="798">
<v-row no-gutters align="center" justify="center">
<v-col class="text-right" cols="12">
<v-container>
<h1>This is my portfolio</h1>
<h4>Let me show you why you should hire me</h4>
</v-container>
</v-col>
</v-row>
</v-parallax>
</template>
<style scoped>
.parallax{
background-position: top;
background-image: url("../assets/backgroundImage.jpg");
background-size:cover;
background-attachment: fixed;
margin-left:-2px;
filter: grayscale(98%);
}
.container{
filter:grayscale(0%);
color:#EEE;
border:1px solid #EEE;
background-color:rgba(0,0,0,0);
}
【问题讨论】:
标签: html css vuetify.js