text

English[tekst] American[t?kst]

n. Text, original text; text, textbook; theme; version

v .Send text message

##overflow

English[???v??fl??] US[?o?v?r?flo?]

vt.& vi. Overflow, drown; crowd, fill; Overflow; excess of resources

n. Flood, overflow; overflow pipe; overflow, excess; excess

vi. Flood, overflow; overflow

adj.overflow Yes, full of

css text-overflow attribute syntax

Function:The text-overflow attribute specifies what happens when text overflows the containing element.

Syntax: text-overflow: clip|ellipsis|string

##Description: clip Trim text.? ? ? ellipsis ? Displays ellipses to represent trimmed text. string Use the given string to represent the trimmed text.?

Note: All major browsers support the text-overflow attribute.

css text-overflow attribute example

<!DOCTYPE html>
<html>
<head>
<style> 
div.test
{
white-space:nowrap; 
width:12em; 
overflow:hidden; 
border:1px solid #000000;
}
</style>
</head>
<body>
<p>下面兩個 div 包含無法在框中容納的長文本。正如您所見,文本被修剪了。</p>
<p>這個 div 使用 "text-overflow:ellipsis" :</p>
<div class="test" style="text-overflow:ellipsis;">This is some long text that will not fit in the box</div>
<p>這個 div 使用 "text-overflow:clip":</p>
<div class="test" style="text-overflow:clip;">This is some long text that will not fit in the box</div>
</body>
</html>
Run instance ?

Click the "Run instance" button to view the online instance