-
-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Description
we can use :global() to to tell vue to render it as global css
<template>
<p>Hello Vue.js</p>
</template>
<style scoped>
p {
font-size:20px;
color:red;
text-align: center;
line-height: 50px;
}
/* Make it work */
:global(body) {
width: 100vw;
height: 100vh;
background-color: burlywood;
}
</style>