wx.showModal里面的content可以不居中显示吗
发布于 5 年前 作者 abai 12734 次浏览 来自 问答
wx.showModal({
  title: '提示',
  content: '1、xxxxxxxxx\n'+"2、xxxxxxxxxxxxx",
  success(res) {
    if (res.confirm) {
      console.log('用户点击确定')
    } else if (res.cancel) {
      console.log('用户点击取消')
    }
  }
})

今天用wx.showmodal这个函数的时候,在content弹出里的内容,可以不居中显示吗,我记得以前的微信版本里,一开始不是居中显示的,后来就居中显示了,对于我的某些功能要弹出来提示用户注意1、xxxxxxxxxx,2、xxxxxxx,3、xxxxxxxxxxxxxx几点内容的时候,由于长度不一,居中显示了好难看,有没有解决办法,求教

2 回复
  1. asdasdasdasdasdalskjxzlkchoaisdkasnlkxnclkasjnd,mansdasdasdasasdasda

  2. asd

  3. asd

  4. asd

  5. asda

  6. sd

  7. asd

  8. asd

  9. as

  10. das

  11. d

  12. asd

  13. as

  14. da

  15. s

  16. das

  17. d

  18. asd

  19. as

  20. d

  21. as

  22. das

  23. d

  24. as

  25. da

  26. sd

  27. as

  28. d

  29. as

  30. d

  31. d

  32. asd

  33. asd

  34. as

  35. d

  36. as

  37. d


这种需求的话,可以自己写个组件,比较适用!

回到顶部