问题描述
这可能是一个基本问题,但我使用的是HTML锚,锚文本为多行段落.我在锚文本部分中有<br>
标记,这些标记当前无法识别(所有文本在输出的一行中).
锚标记的代码如下:
This may be a basic question but I am using HTML anchor, with the text of the anchor as a multi line paragraph. I have <br>
tags in the textpart of anchor which are currently not recognized (all text is in one line in output).
Code for anchor tag is as follows:
<li>
<a href="" title="View all ">Printed Documents
<br>Total distinct count: 88
<br>Top docs are:
<br>RevA02A rework for N3784.doc
<br>PO33006230.pdf
</a>
</li>
我如何将锚文本设置为多行格式?更新:该列表被传递到js-mindmap.js,该文件生成带有内容作为该锚文本的节点.我认为它是<br/>
标签被转义的地方.我也尝试设置样式,但仍在1行上.
How do I have anchor text to be formatted on multiple lines?Updated:This list is passed to a js-mindmap.js which generates nodes with the content as this anchor text. I think its somewhere that <br/>
tags is escaped..I tried setting the style also but still on 1 line.
推荐答案
a{display:block;}
,并且您的br标签应为XHTML,因此<br />
a{display:block;}
, and your br tags should be XHTML so <br />
这篇关于HTML Anchor文字格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!