处理jsp显示文字过长问题的解决方法
(编辑:jimmy 日期: 2025/4/22 浏览:2)
复制代码 代码如下:
<tr>
<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>
荣耀猎人回归!七大亮点看懂不只是轻薄本,更是游戏本的MagicBook Pro 16.
人们对于笔记本电脑有一个固有印象:要么轻薄但性能一般,要么性能强劲但笨重臃肿。然而,今年荣耀新推出的MagicBook Pro 16刷新了人们的认知——发布会上,荣耀宣布猎人游戏本正式回归,称其继承了荣耀 HUNTER 基因,并自信地为其打出“轻薄本,更是游戏本”的口号。
众所周知,寻求轻薄本的用户普遍更看重便携性、外观造型、静谧性和打字办公等用机体验,而寻求游戏本的用户则普遍更看重硬件配置、性能释放等硬核指标。把两个看似难以相干的产品融合到一起,我们不禁对它产生了强烈的好奇:作为代表荣耀猎人游戏本的跨界新物种,它究竟做了哪些平衡以兼顾不同人群的各类需求呢?