Skip to content

小程序踩坑指北 #26

Open
Open

Description

@QC-L
  1. 微信小程序 scrollview 无法横向滚动时
    解决方案: 子元素设置 display:inline-block;

  2. 微信小程序 scrollview 横向滚动时,子元素错位
    解决方案: 子元素添加 vertical-align: top;

  3. 微信小程序提交审核不要出现朋友圈字样,否则会被拒

  4. 微信小程序登录场景,如有必须登录的页面,可以在必须登录页面的 onLoad 方法调用时,重定向到登录页面。
    ps: 如果页面数量很多,则可以写个通用方法,统一处理下需要登录操作的 Page 。

  5. flex 布局换行时,每行元素间会产生的间隙
    解决方案: 父元素添加 align-content: flex-start; ,改变多根轴线时的对齐方式,此方式对一根轴线时无效。

  6. 文字基线对齐,使用 flex 布局
    解决方案: align-items: baseline;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions