日期:2014-05-18  浏览次数:20630 次

在jsp页面中的某一个table中,在某一列的每个td上,鼠标放在每个td上,都会弹出一个对话框,鼠标移开对话框消失,我实现了,但是还是有一些问题。
本帖最后由 Henry_YQH 于 2013-07-24 18:22:50 编辑
我先把我的代码贴出来,然后说一下问题!
这是jsp页面的那一列
<table class="table-css">
<s:if test="data==null || data.isEmpty()">
<tr class="list-row-even">
<td style="width:1070px">There is not data what you wanted!</td>
</tr>
</s:if>
<s:else>
<s:iterator value="data" id="date1" status="st">
<s:if test="#st.index%2==0">
<tr class="list-row-even">
<td style="width:130px"><s:property value="date" /></td>
<td style="width:150px"><s:property value="time" /></td>
<td style="width:88px"><s:property value="userip" /></td>
<td style="width:120px"><s:property value="servclass" /></td>
<td style="width:64px"><s:property value="serverip" /></td>
<td style="width:90px"><s:property value="gotoclass" /></td>
<td  id="text1Id" style="width:195px" onmouseover="showDiv(this)" onmouseout="hideDiv(this)">更多字段
<div class="hideDiv">
     <table class="hideTable">
     <tr ><td> test1=<s:property value="test1" /> </td></tr>
     <tr ><td> test2=<s:property value="test2" /> </td></tr>
     <tr ><td> test3=<s:property value="test3" /> </td></tr>
     <tr ><td> test4=<s:property value="test4" /> </td></tr>
     <tr ><td> test5=<s:property value="test5" /> </td></tr>
     </table>
     </div></td>
<td></td>
</tr>
</s:if>
<s:else>
<tr class="list-row-odd">
<td style="width:130px"><s:property value="date" /></td>
<td style="width:150px"><s:property value="time" /></td>
<td style="width:88px"><s:property value="userip" /></td>
<td style="width:120px"><s:property value="servclass" /></td>