html显示长度较大的数据时的处理方法
2014-05-28 18:07
417 查看
在html中显示长度较大的数据时,可以将数据截取显示,当鼠标滑过时再显示完整数据。
例如,下面这种情况。
实现:
例如,下面这种情况。
实现:
<a title="${siteBoardInfoList.boardUrl}"> <c:if test="${fn:length(siteBoardInfoList.boardUrl) >= 40}"> ${fn:substring(siteBoardInfoList.boardUrl,0,20)}......${fn:substring(siteBoardInfoList.boardUrl,fn:length(siteBoardInfoList.boardUrl)-21,fn:length(siteBoardInfoList.boardUrl))} </c:if> <c:if test="${fn:length(siteBoardInfoList.boardUrl) < 40}"> ${siteBoardInfoList.boardUrl} </c:if> </a>
相关文章推荐
- html显示长数据的处理方法
- 复杂检索数据并分页显示的处理方法
- 利用Ajax生成ProgressBar:实现同类大批量数据批量生成Html,并实时显示进度条,可查看处理日志
- html中文显示乱码的处理方法
- Java后台处理带HTML标签数据的方法 -------------Java搬砖之路(1)
- document.execCommand()方法处理Html数据
- PHP复杂检索数据并分页显示的处理方法
- 根据后台数据动态在html页面显示新的数据的方法:
- 处理字符串的一些js/jq方法(去除HTML,去除空格,计算真实长度,截取中英文字符)
- Flexigrid在IE下不显示数据的有效处理方法
- 处理字符串的一些js/jq方法(去除HTML,去除空格,计算真实长度,截取中英文字符)
- 爬虫 Http请求,urllib2获取数据,第三方库requests获取数据,BeautifulSoup处理数据,使用Chrome浏览器开发者工具显示检查网页源代码,json模块的dumps,loads,dump,load方法介绍
- ASP.NET Export to Excel(导出数据到Excel) & C#导出Excel,某单元格内容长度超过255的处理方法
- 复杂检索数据并分页显示的处理方法
- 新闻标题超出一定长度显示"..."的CSS处理方法
- Flexigrid在IE下不显示数据的处理的解决方法
- 复杂检索数据并分页显示的处理方法
- UITableView 显示大量网络数据时怎样处理反应过慢的方法
- 树形数据的反选有两种方法以及处理后台返回拼装htmL的异步获取不到现象(但是页面F12可以看到)
- spring mvc 4.x 版本在返回给ajax调用的json数据时候,出现中文显示???的处理方法