Explorar el Código

[edit][全局样式]

zhangwei hace 2 años
padre
commit
c913a092f4
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  1. 1 1
      nuxt.config.js
  2. 9 0
      static/css/main.scss

+ 1 - 1
nuxt.config.js

@@ -27,7 +27,7 @@ export default {
 	},
 
 	// Global CSS: https://go.nuxtjs.dev/config-css
-	css: [],
+	css: ['@/static/css/main.scss'],
 
 	// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
 	plugins: ['plugins/vant'],

+ 9 - 0
static/css/main.scss

@@ -0,0 +1,9 @@
+html,
+body,
+#__nuxt,
+#__layout {
+	width: 100%;
+	height: 100%;
+	padding: 0;
+	margin: 0;
+}