微信小程序经常使用样式汇总(1)

1.设置全局字体样式app.wxss:web

text{
font-family:MicroSoft yahei;
}
2.设置弹性盒子模型:json

复制代码
.container{
/弹性模型/
display:flex;
/垂直方向 列方向 排布/
flex-direction:column;zhaoweb.cn
/居中/
align-items:center;
/要从总体解决排布的问题是最好的方案/
}
复制代码
3.设置页面全屏样式及背景色:app

page{
height:100%;
background:#b3d4db;(www.zhaoweb.cn)
}
4.全局设置导航条颜色app.json:xss

"window": {
"navigationBarBackgroundColor": "#405f80"
}
5.页面设置导航条颜色和标题*.json:ide

{
"navigationBarBackgroundColor": "#405f80",
"navigationBarTitleText":"文与字"
}字体

相关文章
相关标签/搜索