MENU

微信小程序常用标签

December 28, 2018 • note

wxss

/* 定义全局 */
page { }

/* 文字自动换行 */

test{word-break: break-all;}

wxml

<!-- 超链接 -->
<navigator url='../index/index' class='test'>返回首页</navigator>

app.json

{
  "pages":[
    "pages/index/index",
    "pages/logs/logs",
    "pages/test/index"
  ],
  "window":{
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "#ff0",
    "navigationBarTitleText": "WeChatIndex",
    "navigationBarTextStyle":"black"
  }
}

 

Last Modified: May 22, 2019