u
This commit is contained in:
1 parent
60c02402b9
commit
330c4d09fa
22 files changed
+485
-1
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
在 `pages.json` 中设置 `backgroundColor` 并未生效。
|
||||
|
||||
设置全局背景色在 `App.vue` 中进行设置,设置单个页面背景色就在对应的页面中设置。
|
||||
设置全局背景色在 `App.vue` 中进行设置
|
||||
|
||||
```vue
|
||||
<!--此标签需要新建,不要和样式搞在一起-->
|
||||
@@ -13,3 +13,21 @@ page {
|
||||
</style>
|
||||
```
|
||||
|
||||
设置单个页面背景色就在对应的页面中设置
|
||||
|
||||
```vue
|
||||
<!--此标签需要新建,不要和样式搞在一起-->
|
||||
<style scoped>
|
||||
page {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
page {
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user