---
title: "常用小代码段和开发经验收集"
author: "ttitfly"
date: "2011-04-21T14:47:32Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2011-04-21T18:06:02Z"
id: 1011146
url: "https://ttitfly.iteye.com/blog/1011146"
---

工作中用到的笔记，方便查找，不断补充。
1，截取过长的文字部分，用省略号代替

```java

<DIV STYLE="width: 120px; height: 50px; overflow: hidden; text-overflow:ellipsis">
<NOBR>比如有一行文字很长，表格内一行显示不下</NOBR>
</DIV>


```


----待续-----