<a href>标记内的换行符

情况很少。我正在使用Wordpress Magnific弹出插件,它从媒体库中拍摄图片。在图片上,我有一个标题,alt和一些标题,当我在页面上输入它时,  在灯箱外部,我会在检查代码时得到此代码。问题是我无法使用任何html。我认为这一定是因为其内部标记。我想知道是否有可能使其包含html,因为我需要在其中使用换行符?

<figure> <a href="https://somepage.com/somepage/image.jpeg" data-rel="lightbox-gallery-1234" data-magnific_type="image" data-rl_title="Some Title" data-rl_caption="Caption for the picture and some more text" title="Some title"> <img src="https://somepage.com/somepage/image.jpeg" data-link="https://somepage.com/somepage/image.jpeg"> </a></figure>

jzllong 回答:<a href>标记内的换行符

检查以下问题:CSS data attribute new line character & pseudo-element content value

同样适用于您。

,

找到了我问题的答案。添加 空白:预包装; CSS和&#13;作为换行符

本文链接:https://www.f2er.com/3103280.html

大家都在问