The method of modifying the background color and font color at the top of the page in the firefly applet store

Modify the background color and font color at the top of personal center page

Modify page configuration file

Modify the front personal center page configuration file. The file path is pages/user/index.json. NavigationBarTitleText is the top title, and navigationBarBackgroundColor is Top background color , navigationBarTextStyle is Top Font Color Note that the value of the top font color can only be "write" or "black". Change to the color you like as needed.

 { "NavigationBarTitleText": "Personal Center", "navigationBarBackgroundColor":"#ffdd00", "navigationBarTextStyle": "black" }

Modify Page Style File

Modify the front page style file. The file path is pages/user/index.wxss. The background color item is the background color, which can be modified as needed. If you want to modify the text color, you can add the color item.

 .user-header { display: flex; padding-top: 1px; width: 100%; height: 310rpx; align-content: center; background-color: #fd0; background-repeat: no-repeat; background-position: center right; background-size: auto 100%; }

Modify the top background color and font color of all classified pages

Modify the front page configuration file, the file path is pages/category/index.json. Open the file and add two lines of code: "navigationBarBackgroundColor": "# ffdd00" and "navigationBarTextStyle": "black". Modify the color according to your needs.

 { "NavigationBarTitleText": "All Categories", "navigationBarBackgroundColor":"#ffdd00", "navigationBarTextStyle": "black" }

Modify the background color and font color at the top of the shopping cart page

Modify the front page configuration file, the file path is pages/flow/index.json. Open the file and add two lines of code: "navigationBarBackgroundColor": "# ffdd00" and "navigationBarTextStyle": "black". Modify the color according to your needs.

 { "NavigationBarTitleText": "Shopping Cart", "navigationBarBackgroundColor":"#ffdd00", "navigationBarTextStyle": "black" }

It can be found from the above modifications that the title, background color and font color of the top of the page defined separately are all modified in the configuration file. The configuration file at the front end of the applet is the suffix of json, and the style file at the front end of the page is the suffix of wxss.

All contents of this site, if there are copyright, infringement and other issues, please contact this site in time to delete. Publisher: Juyun, please indicate the source for reprinting: https://www.juyun.top/5522.html

fabulous (1)
Reward  Scan WeChat Scan WeChat
 object object gold medal
Previous 11:42 PM, September 3, 2020
Next 8:30 am, September 8, 2020

Related recommendations

Post reply

Your email address will not be disclosed. Required items have been used * tagging

Q&A Community Online Service
Consulting telephone

 iphone Hotline: 13001069197

Service time: morning 9:00 Until evening 21:00

contact us

 qq Technology: 109033286

 qq Operation and maintenance: 3423710838

 email Email: drhxxkj@163.com

 two thousand and twenty-two trillion and seventy-two billion one hundred and nineteen million four hundred and eighty-two thousand six hundred and sixty-one eight hundred and eight million twenty-six thousand seven hundred and sixty-six

Share this page
Back to top
I know all the strategies of going to the cloud

Enterprises go to the cloud and purchase ECS strategies to help you save the cost of going to the cloud, Value in thousands The cloud strategy of, let you save is to earn!

View details