map地图中textAlign在手机中一直显示居中,不起作用
发布于 6 年前 作者 yinmin 8224 次浏览 来自 官方Issues

                              callout: {

                                   content: ‘网点名称:啊啊啊啊\n网点地址:啊啊啊啊啊\n联系人:啊啊啊啊\n电话:123213’,  //文本

                                   color: ‘#FF0202’,  //文本颜色

                                   borderRadius: 3,  //边框圆角

                                   borderWidth: 1,  //边框宽度

                                   borderColor: ‘#FF0202’,  //边框颜色

                                   bgColor: ‘#ffffff’,  //背景色

                                   padding: 5,  //文本边缘留白

                                   textAlign: ‘right’  //文本对齐方式。有效值: left, right, center

                              }

2 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

回到顶部