Home > Article > Web Front-end > How to set the background color in uniapp
How to set the background color of uniapp: First find and open the App.vue file in the root directory; then add the code "page{background-color: #f5f5f5;}" in the style block.
The operating environment of this tutorial: windows7 system, uni-app2.5.1 version. This method is suitable for all brands of computers.
Recommended (free): uni-app development tutorial
##uni-app has a global background color setting method
Add code in the style block in the App.vue file in the root directory<style> /*每个页面公共css */ page{ background-color: #f5f5f5; } </style>Single page window background color settings such as: set in the vue file of the page
<style> page { background-color: #f00; } </style>
The above is the detailed content of How to set the background color in uniapp. For more information, please follow other related articles on the PHP Chinese website!