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

vue3中 img设置 inline-block导致 报错 #438

Closed
flywill-hjj opened this issue Jul 5, 2022 · 0 comments
Closed

vue3中 img设置 inline-block导致 报错 #438

flywill-hjj opened this issue Jul 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@flywill-hjj
Copy link

flywill-hjj commented Jul 5, 2022

使用环境

小程序: 微信小程序
基础库: 2.24.7
微信开发者工具: RC 1.06.2206271
hbuilderx: 3.5.0 alpha
mp-html: v2.3.1

问题描述

如果img的display设为 inline-block 且外层包裹元素(p,div)就会报错 ( 把display设为block不报错)
image

复现方式

新建页面复制代码

<mp-html content="<div><img style='display: inline-block;' src='https://www.runoob.com/try/demo_source/smiley-2.gif'></div>" lazy-load selectable></mp-html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants