处理jsp显示文字过长问题的解决方法

发布时间:2022-04-17 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了处理jsp显示文字过长问题的解决方法脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
复制代码 代码如下:

<tr>
&nbsp;   <td height="60px;" width="20%" align="right" valign="top">
      <font style="font-weight: bold;">标题:</font>
     </td>
    <td height="60px;" width="80%" align="left" valign="top">
        <a id="span_content" href="#" style="color: whITe;" onmouSEMove="showdiv('span_div','',event)" onmouseover="showdiv('span_div','',event)" onmouseout="showdiv('span_div','none',event)">
    <c:if test="${fn:length(schedule.content eq null?'无':schedule.content)>70}">${fn:substring(schedule.content eq null?'无':schedule.content,0,70)}...</c:if></a>
        <span id="span_content_span"><c:if test="${fn:length(schedule.content eq null?'无':schedule.content)<=70}">
        ${schedule.content null?'无':schedule.content}</c:if></span>
    </td>
     <div id="span_div" class="showDiv" style="display:none">
            ${schedule.content eq null?'无':schedule.content}
    </div>   
</tr>
<script tyPE="text/javascript">
      function showdiv1(objstr,str,ev) {//根据鼠标位置显示对象,参数ev为event
                    VAR ObjX,ObjY;//对象的位置(x,y)
                    var mouseX=10;//对象的(x)水平位置距离鼠标的
                    var mouseY=-2;//对象的(y)垂直位置距离鼠标的高度
                    var obj = document.getElementById(objstr);
                    obj.style.display=str;//显示或隐藏对象
                    obj.style.left ='200px';
                    obj.style.top ='110px';
                }
</script>

脚本宝典总结

以上是脚本宝典为你收集整理的处理jsp显示文字过长问题的解决方法全部内容,希望文章能够帮你解决处理jsp显示文字过长问题的解决方法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:jsp