Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<text>标签文字换行后,间距太宽 #14718

Open
xujiujiu opened this issue Oct 30, 2023 · 2 comments
Open

<text>标签文字换行后,间距太宽 #14718

xujiujiu opened this issue Oct 30, 2023 · 2 comments
Labels
F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@xujiujiu
Copy link
Contributor

xujiujiu commented Oct 30, 2023

相关平台

H5

浏览器版本: Chrome 已是最新版本 版本 118.0.5993.118(正式版本
使用框架: Vue 2

复现步骤

在工程里使用,内容文字长度达到至少两行的场景,并设置更小的字体,代码如下:

<text style="font-size:12px;">啊的空间放射科大夫按时打卡发哈就开始的发生口角电话发卡号是健康的ask积分卡第三方安防技术的开发卡位黑客软件为卡死</text>

期望结果

两行之间间距小
image

实际结果

两行之间间距太宽

image

环境信息

👽 Taro v3.5.7


  Taro CLI 3.5.7 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.0 - D:\node program\nodejs\node.EXE
      Yarn: 1.22.19 - D:\node program\node_global\yarn.CMD
      npm: 7.7.6 - D:\node program\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Oct 30, 2023
@ZakaryCode
Copy link
Contributor

自行配置 line-height 即可

@xujiujiu
Copy link
Contributor Author

xujiujiu commented Nov 1, 2023

image
并不会生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Status: Padding
Development

No branches or pull requests

2 participants