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

公众号在阅读模式里width=0被无视的排版问题 #5839

Closed
sasasqt opened this issue Aug 11, 2023 · 2 comments
Closed

公众号在阅读模式里width=0被无视的排版问题 #5839

sasasqt opened this issue Aug 11, 2023 · 2 comments

Comments

@sasasqt
Copy link

sasasqt commented Aug 11, 2023

update: 纯粹模式开启后会导致以下问题:

描述这个错误

在阅读模式下,原本width=0 的元素会无视该参数

可能的解决方案:preprocessing 删除所有width=0的元素

复现步骤

  1. 访问 https://mp.weixin.qq.com/s?__biz=Mzg2OTY0MDk0NQ==&mid=2247503594&idx=1&sn=7962f283bd87e27fc00aa6dd62c8c9ab
    1.1 其中导致问题的源码: image
  2. 进入阅读模式后导致排版问题
    image
    image

其他相关说明

No response

操作系统

win10

浏览器

chrome

发生问题的网址

https://mp.weixin.qq.com/s?__biz=Mzg2OTY0MDk0NQ==&mid=2247503594&idx=1&sn=7962f283bd87e27fc00aa6dd62c8c9ab

@sasasqt sasasqt changed the title 阅读模式里空白svg排版问题 阅读模式里width=0被无视的排版问题 Aug 11, 2023
@Kenshin
Copy link
Owner

Kenshin commented Aug 11, 2023

确实如此,一般仅见于公众号。

提供了很好的思路,哟看看如何优化。

@Kenshin
Copy link
Owner

Kenshin commented Aug 12, 2023

嗨,这个问题已经解决了。

更新适配规则即可 #2870

留意官方适配规则生效才行

image

@Kenshin Kenshin closed this as completed Aug 12, 2023
@Kenshin Kenshin changed the title 阅读模式里width=0被无视的排版问题 公众号在阅读模式里width=0被无视的排版问题 Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants