Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 2.14 KB

File metadata and controls

29 lines (22 loc) · 2.14 KB

Global CSS medium #CSS Features

By webfansplz @webfansplz

Take the Challenge    简体中文

Sometimes, we may want to set global CSS in the scoped component. Do you know how to solve it?. Lets go 👇:

<template>
  <p>Hello Vue.js</p>
</template>

<style scoped>

p {
  font-size:20px;
  color:red;
  text-align: center;
  line-height: 50px;
}

/* Make it work */
body {
  width: 100vw;
  height: 100vh;
  background-color: burlywood;
}
</style>

Back Share your Solutions Check out Solutions