vuejs-challenges icon indicating copy to clipboard operation
vuejs-challenges copied to clipboard

27 - 全局CSS

Open PoliWen opened this issue 2 years ago • 0 comments

<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;
}
 
/* 还有一个插槽选择器 */
:slotted(selector){ }
 
/* deep选择器 */
:deep(selector){ }
</style>

PoliWen avatar Sep 04 '22 16:09 PoliWen