Vue's css style encapsulation

  1. Find the css folder in assest in src or the style folder in the root directory

  1. Create a new css file and cut all the files in <style></style>

  1. Don't forget to add ( @charset "UTF-8"; ) this line on top

  1. Finally, import this file in <style></style>, and you can apply it directly

Guess you like

Origin blog.csdn.net/silbier/article/details/128965647