HTML Anchor文字格式 [英] Html Anchor text formatting

查看:86
本文介绍了HTML Anchor文字格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个基本问题,但我使用的是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文字格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆