Web/WEB기본
text-overflow 영역에 글자 넘어갈때 처리
saltdoll
2013. 2. 14. 11:34
반응형

글자가 영역을 지나가면, (..)효과를 줄때 사용한다.
Definition and Usage
The text-overflow property specifies what should happen when text overflows the containing element.
| Default value: | clip |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.textOverflow="ellipsis" |
Syntax
text-overflow: clip|ellipsis|string;
| Value | Description |
|---|---|
| clip | Clips the text |
| ellipsis | Render an ellipsis ("...") to represent clipped text |
| string | Render the given string to represent clipped text |
참고: http://www.w3schools.com/cssref/css3_pr_text-overflow.asp
반응형