微信小程序常用标签

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"
  }
}

 

1 + 1 =
快来做第一个评论的人吧~