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

表格渲染与浏览器不一致 #586

Open
SeptemberTwelve opened this issue Mar 18, 2024 · 1 comment
Open

表格渲染与浏览器不一致 #586

SeptemberTwelve opened this issue Mar 18, 2024 · 1 comment

Comments

@SeptemberTwelve
Copy link

SeptemberTwelve commented Mar 18, 2024

使用环境

微信小程序
基础库版本: 2.26.0

问题描述

在Iphone机子显示正确,但是安卓机子显示异常,表格多出空白部分。td的width="0"

下图为浏览器渲染结果
image
下图为安卓机子显示结果
image

复现方式
富文本内容:

富文本内容.txt

tagStyle: {
table: 'border: solid 1px #64a4e1; border-spaceing: 0; border-collapse: collapse; width: 100%;',
th: 'border: solid 1px #64a4e1; font-size:14px;',
td: 'border: solid 1px #64a4e1; font-size:14px;white-space: normal;vertical-align: middle;',
li: 'margin: 5px 0;',
h1: 'background: #b2edff; margin: 5px 0; font-size: 18px; line-height: 36px; height: 36px; color: #005bb1;font-weight: bold;padding: 5px;',
h2: 'background: #64a4e1; color: #fff; font-weight: bold; font-size: 14px; padding: 5px; margin: 2px 0;',
p: 'line-height: 1.5em;font-size:16px;',
}

@SeptemberTwelve
Copy link
Author

补充一下,在安卓真机上调试,td没有自动填满表格
879ee4ebf00b0c2539f3934dca780b06_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant