css控制字符過長顯示問題
<style type="text/css">
.demo {display: inline-block;
*display: inline;
*zoom: 1;
width: 140px;
height: 20px;
line-height: 20px;
font-size: 12px;
overflow: hidden;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;}
.demo:hover {height: auto;white-space: normal;}
.hiddenword {display: inline-block;*display: inline;*zoom: 1;width: 140px;line-height: 20px;font-size: 12px;overflow: hidden;-ms-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;}
}
</style>
el表達式控制字符長度問題:
<td nowrap style="text-align:center;" title="${item.WORK_CONTENT}">
<c:if test="${fn:length(item.WORK_CONTENT) > 10}">
${fn:substring(item.WORK_CONTENT, 0, 10)}...
</c:if>
<c:if test="${fn:length(item.WORK_CONTENT) <= 10}">
${item.WORK_CONTENT}
</c:if>
</td>
class="pageForm required-validate" class="required" 不爲空驗證
根據兩個表的數據更新其中一個表
update hr_employee h
set h.promotion_day = (select a.c from aa a where a.a = h.empid)
where h.cpny_id = '1200'
and exists (select 1 from aa a where h.empid = a.a)