处理jsp显示文字过长问题的解决方法
2023-06-13 09:14:47 时间
<tr>
<tdheight="60px;"width="20%"align="right"valign="top">
<fontstyle="font-weight:bold;">标题:</font>
</td>
<tdheight="60px;"width="80%"align="left"valign="top">
<aid="span_content"href="#"style="color:white;"onmousemove="showdiv("span_div","",event)"onmouseover="showdiv("span_div","",event)"onmouseout="showdiv("span_div","none",event)">
<c:iftest="${fn:length(schedule.contenteqnull?"无":schedule.content)>70}">${fn:substring(schedule.contenteqnull?"无":schedule.content,0,70)}...</c:if></a>
<spanid="span_content_span"><c:iftest="${fn:length(schedule.contenteqnull?"无":schedule.content)<=70}">
${schedule.contentnull?"无":schedule.content}</c:if></span>
</td>
<divid="span_div"class="showDiv"style="display:none">
${schedule.contenteqnull?"无":schedule.content}
</div>
</tr>
<scripttype="text/javascript">
functionshowdiv1(objstr,str,ev){//根据鼠标位置显示对象,参数ev为event
varObjX,ObjY;//对象的位置(x,y)
varmouseX=10;//对象的(x)水平位置距离鼠标的宽度
varmouseY=-2;//对象的(y)垂直位置距离鼠标的高度
varobj=document.getElementById(objstr);
obj.style.display=str;//显示或隐藏对象
obj.style.left="200px";
obj.style.top="110px";
}
</script>
相关文章
- JSP基础知识总结
- JSP连接Sql Server数据库示例详解编程语言
- JSP脚本
- JSP application.getRealPath()方法:获取虚拟路径的真实路径
- JSP application.log()方法:写入信息到Servlet的日志文件
- JSP application.removeAttribute()方法:移除指定属性
- JSP PageContext.getSession()方法:返回当前的Session对象
- JSP Response.getMaxInactiveInterval()方法:获取session的有效时间
- JSP实现Oracle数据库连接(jsp连接oracle)
- Linux下开发JSP编程指南(linux开发jsp)
- 从MySQL数据库读取数据:使用JSP实现(jsp读取mysql)
- 行Linux下使用JSP编程:掌握命令行的能力(linuxjsp命令)
- JSP实现Oracle数据库调用技术(jsp 调用oracle)
- 使用JSP和Oracle进行数据库应用开发(jsp加oracle)
- JSP开发入门
- 编写线程安全的JSP程序
- JSP上传图片产生java.io.IOException:Streamclosed异常解决方法
- jsp下显示中文文件名及绝对路径下的图片解决方法
- jsp传值中文乱码问题解决方法示例介绍
- JSP页面中文参数的传递(get和post方法分析)
- jsp中文显示问号问题解决方法
- jsp之间传参数接受中文有乱码问题解决方法