如何使链接在<p>标签内可以点击?

问题描述 投票:-1回答:1

我有一个段落,中间有一个链接。例如,它将看起来像。

Lorem Ipsum https :/www.lipsum.com 是印刷和排版行业的简单哑文。Lorem Ipsum自15世纪以来一直是行业的标准哑文,当时一个不知名的印刷商拿着一份铅字样本拼凑成一本铅字样本书。它不仅经历了五个世纪,而且还经历了电子排版的飞跃,基本上没有改变。https :/www.lipsum.com 它在20世纪60年代随着包含Lorem Ipsum段落的Letraset纸张的发布而普及,最近随着Aldus PageMaker等桌面出版软件包括Lorem Ipsum的版本而普及。

这应该是这样的。

Lorem Ipsum https:/www.lipsum.com 是简单的印刷和排版行业的哑文。自15世纪以来,Lorem Ipsum一直是行业的标准哑文,当时一位不知名的印刷商拿着一份铅字样本拼凑成一本铅字样本书。它不仅经历了五个世纪,还经历了电子排版的飞跃,基本没有改变。https:/www.lipsum.com 20世纪60年代,随着包含Lorem Ipsum段落的Letraset表的发布,以及最近包括Lorem Ipsum版本的Aldus PageMaker等桌面出版软件的发布,它得到了普及。

我怎样才能做到这一点?

html paragraph
1个回答
0
投票

检查你的代码是否一切正常。你的代码应该是这样的。

<p> Lorem Ipsum <a href="https://www.lipsum.com/">https://www.lipsum.com/</a> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. <a href="https ://www.lipsum.com/">https://www.lipsum.com/</a> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>

还有,一定要把你的代码贴出来 因为当我们看不到的时候,就很难帮到你。这是我自己的经验之谈。

© www.soinside.com 2019 - 2024. All rights reserved.