15年软件开发经验 只做源码定制 互联网+定制化解决方案

15年软件开发经验,只做源码定制!

原创设计 定制开发

满足您的个性化需求

当前位置:首页

微信开发工具与真实手机运行小程序时默认导航条的区别

李家霖| 发布于 2021-07-06 22:40:21| 349阅读| 0点赞| 0评论
举报

电脑端的小程序开发导航条与手机运行是会有一些小的区别

使用uni-app设置的默认导航条在微信开发者工具中导航条中的文字是默认显示在中间的

微信开发者工具中 

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe4AAABnCAYAAADG36HyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAABGASURBVHhe7d07jBxVm4dxJ4sEiQkg2QAIN+B+x9wSW7ABZJgEZ4YIEiREAk6RsINF+oQQJvBqM2BDJxA4XFmIDewIGVvGNjcLBBgQyLD0fk/tvv7eOfNWd3VPz3hq5gl+6u6qU1U9p07Xv07dZsftt98+kSRJ42BwS5I0Iga3JEkjspTgvuOOOyRJUqHKzbVYKLirLyZJkmarcnUeg4P7zjvvlCRJS1Tl7Swzg5u9g1jA77//LkmSliCydd5eeG9w5249M77nnnvKBUuSpPmRqxHcocrjVhnceSZgxvfdd1+5YEmSND9ytQ1uVLmcrQrudgbM9O6775488MAD5YIlSdL8yFXydd7wXhHc7YQwuCVJWr5pwY2cz9mV4K4mYmYR3A8++GC5YEmSND9yNYJ7nvDuDe6Y0V133dWdQDe4JUlaHnKVfCVn+8I7B3bogrstGDOI4L733nsnDz30ULlgSZI0P3KVfM3BjTaTZwZ3nhh047djcB87dmyyZ8+eyVdffbVqOHV24sSJVcOr8n1++OGHyf79+yc7duy4gs8MZx7Mi3lW00qSpvv0008nDz/88Ipt7HpgGSyr+g6zRHDnw+Uh53IObezII9FOzAy5ZH3Xrl3lgreqvvA8cuRIt7J4bYcfOHBgxbA+hD6V387j7bff7pa7jOBm2tgRaMe9//77k3379k2uv/76FQ2Qzwz/4IMPVk2j9VftzLVtJNpOjOd9uxOZRVvq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N7r587HHr++eczI+3JOhBjB3wx0KxZs3Ly+uuvh48++sjKV6LtQjQ2mGGDEZ0NRl8JkwcX/pM082z69OmTGVeM1ZMPPK6Q75SvdZMHzB3F9pUKL4z0TzIXlZ2XSg7SJrc7dFQhqtTNSYjGCNcOZpTMzWNQvtyQwNwx3UrckKgDscx3aTF3nowAD3jNnj3bfmfDlX1sTZCNIHtRyM8A1onJCyEaNwRgfBss5uRG1ZCNPra9VDzIjSlWviboQ9I03IwKCT5l8kKIOoGok4g+afSiOOg7+jHfw0/ZyOSFEHUCpoRBEdGTuql0xJx2MHjGC/J9GVkMmbwQok4hdUNE74OxMvv8YO4+rsEgdjEGDzJ5IUSdg1FhWBiXP6Tohi/+BwbvP5/ov+VarMGDTF4IUa8Q0WNkPNTDd91g/hh/Y4UBVUyd/mAZoy/F3B2ZvBCi3sHEAEMjb8/3sTRW8OJSo/YYMnkhRL3iz7f4X1FZZPJCiHpHBl97yOSFECLFyOSFECLFyOSFECLFVDN58mJCCCHSQzWT5wuDhBBCpIdqJi9JkiSlSzJ5SZKkFEsmL0mSlGLJ5CVJklIsmbwkSVKKJZOXJElKsWTykiRJqVUI/wJ1Y3iVaNd+GgAAAABJRU5ErkJggg==

所以不必为了在微信开发者工具中的导航条靠左 而自定义一个组件 因为在手机端的时候会自动的靠左

0

0条评论

别默默看啦~登录/注册一起参与讨论吧~

热门标签

李家霖
微信扫一扫立即咨询
账号登录|扫码登录

立即注册 |忘记密码?

欢迎注册

已有账号马上登录

重置密码

扫码绑定微信
微信扫一扫

绑定手机号

分享到-微信

举报

  • 举报类型:

  • 举报描述:

您好,当前积分不足。

在线客服
拨打电话
17330196230 13230981129
顶部