页面框 强行换行


style="word-break:break-all" 强行换行


[img]http://dl2.iteye.com/upload/attachment/0101/6127/c4b12de8-3db5-3a84-9237-b9f953e7e920.png[/img]


style=\"white-space:nowrap;\" 强行不换行


//多出来的变省略号
<script id="UserListTmp" type="text/x-jquery-tmpl">
<tr data-grid="${id}">
<td style="text-align:center;word-break:break-all"><input type="checkbox" name="" id="${id}" /></td>
<td style="text-align:center;word-break:break-all" >${index}</td>
<td style="text-align:center;word-break:break-all" width="72px">${id}</td>
<td style="text-align:center;word-break:break-all" width="25%"><span style="width:400px" class="kill">${target}</span></td>
<td style="text-align:center;word-break:break-all"><span style="width:400px" class="kill">${lun}</span></td>
<td width="42px" class="tdfix1"><a href="javascript:;" onclick="_edit('${id}')">编辑</a></td>


<style>
.user-content treefix table tbody tr td span.kill{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}
</style>

<!---->
<div class="user-content treefix" style="min-height:400px">
<div class="user-form">
<div class="user-list">
<table cellpadding="0" cellspacing="0" border="0" id="User_List" class="tabcont">
<thead>
<tr><th width="20px"><input id="checkAll" type="checkbox" name="" /></th>
<th width="32px">序号</th>
<th style="text-align:center" width="72px">ID</th>
<th style="text-align:center" width="25%">基本名称</th>
<th style="text-align:center" >LUN</th>
<th width="42px">操作</th>
</tr>
</thead>

<tbody id="UserList">
</tbody>
</table>


<div class="tab-foot">
<!---->
<div class="ctrl">
<a href="javascript:;" id="add" onclick="newAdd();"><i class="icon-plus"></i>添加</a>
<a href="javascript:;" onclick="_doDel('#UserList');"><i class="icon-mins"></i>删除</a>
</div>

<!---->
<div class="pages" id="Pages">
<a href="javascript:;"><i class="icon-prev"></i></a>
<a href="javascript:;"><i class="icon-next"></i></a>
</div>
</div>
</div>
</div>
</div>

</tr>
</script>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值