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

<a> 链接中包括图片会导至断行并且点击区域出错 #464

Closed
jianmei opened this issue Oct 2, 2022 · 1 comment
Closed

<a> 链接中包括图片会导至断行并且点击区域出错 #464

jianmei opened this issue Oct 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jianmei
Copy link

jianmei commented Oct 2, 2022

使用环境

微信小程序 基础库 2.10.4 及真机 2.60.0以上

问题描述

使用以下代码时:

<mp-html selectable='force' style='font-weight:normal;margin-top:15rpx;font-size:32rpx;text-align:justify;' content='{{item.content}}' bind:linktap="onlinktap"></mp-html>

<b>白脸鸻</b>(英文名:White-faced Plover,学名:<i>Charadrius dealbatus</i>),是鸻形目鸻科鸻属的鸟类。<p>IOC 10.2: 自 <a id="1523" href="1523">环颈鸻<img id="1523"src="/pages/index/image/link.png" width="18rpx" height="18rpx"/></a> (Charadrius alexandrinus)分拆独立成种。详见 IOC 备注。<p>

出现意料之外的断行。并且只有点击图片才可触发点击事件。

image

@jianmei
Copy link
Author

jianmei commented Oct 2, 2022

移去图片后正常:

<b>白脸鸻</b>(英文名:White-faced Plover,学名:<i>Charadrius dealbatus</i>),是鸻形目鸻科鸻属的鸟类。<p>IOC 10.2: 自 <a id="1523" href="1523">环颈鸻</a> (Charadrius alexandrinus)分拆独立成种。详见 IOC 备注。<p>

image

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