`
齐晓威_518
  • 浏览: 606037 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

强制限制表格宽度(防止文字对列表的挤开)

 
阅读更多

<table>

    <tr class="blueheader"> 
      <td width="5%" >模版ID</td> 
      <td width="10%" >模版组</td> 
      <td width="20%"  >短信内容</td> 
      <td width="15%" >发送范围</td> 
      <td width="8%" >添加人</td> 
      <td width="12%" >更新时间</td> 
      <td width="8%" >有效期</td> 
      <td width="12%" >备注</td> 
      <td width="10%" >操作</td> 
    </tr> 
    <s:iterator value="result" id="beans"> 
      <tr onClick="ClickEvent(this)" onMouseDown="this.className='tblSubDeepBlue'" onMouseOver="overEvent(this)"  onMouseOut="OutEvent(this)" id="${tempId}"> 
        <td style="word-break:break-all;text-align:left;" mce_style="word-break:break-all;text-align:left;" class="txtcen">${tempId}</td> 
        <td style="word-break:break-all;text-align:left;" mce_style="word-break:break-all;text-align:left;" class="txtcen"  >${smsTemplateGroup.groupName}</td> 
        <td style="word-break:break-all;text-align:left;" mce_style="word-break:break-all;text-align:left;">${smsContent}</td> 
        <td style="word-break:break-all;text-align:left;" mce_style="word-break:break-all;text-align:left;">${sendScope}</td><!--这里的样式是为了强制限制列表宽度,不让文字把列宽挤开, 让上面的width="15%"真正起到作用-->        <td style="word-break:break-all;text-align:left;" mce_style="word-break:break-all;text-align:left;">${operator}</td> 
        <td ><s:date name="updateTime" format="yyyy-MM-dd HH:mm" /></td> 
        <td ><s:date name="endTimes" format="yyyy-MM-dd" /></td> 
        <td style="word-break:break-all;text-align:left;" mce_style="word-break:break-all;text-align:left;">${remarks}</td> 
        <td><a href="javascript:void(0);" mce_href="javascript:void(0);" onClick="modify('${tempId}')">修改</a> 
         <a href="javascript:void(0);" mce_href="javascript:void(0);" onClick="doRemove('${tempId}')">删除</a> </td> 
      </tr> 
    </s:iterator> 
    <tr> 
      <td colspan="9" class="page"><%@include file="/common/simplePager.jsp"%></td> 
    </tr>


</table>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics