css3 word-wrap attribute
Translation results:
word
英[wɜ:d] 美[wɜ:rd]
n. Word; Discourse; Promise; Message
vt .Wording, wording; expressing with words
vi.Speech
Third person singular: words Plural: words Present participle: wording Past tense: worded Past participle: worded
wrap
英[ræp] 美[ræp]
vt. Wrap; wrap; wrap with... (or bandage, cover, etc.); cover
n. Lap blanket, shawl, scarf, scarf, headscarf, blouse, jacket, coat; wrapping paper;
vi. Wrap, coil (usually used in conjunction with over, around, etc.); wrap , wrap; put on (clothes, etc.)
Third person singular: wraps Plural: wraps Present participle: wrapping Past tense: wrapped Past participle: wrapped
css3 word-wrap attributesyntax
Function: Allow long words or URL addresses to wrap to the next line.
Description: Set or retrieve whether to break lines when the content exceeds the boundary of the specified container.
Word-wrap is a property in CSS3 that allows long words or URL addresses to wrap to the next line
css3 word-wrap attributeexample
<!DOCTYPE html>
<html>
<head>
<style>
p.test
{
width:11em;
border:1px solid #000000;
word-wrap:break-word;
}
</style>
</head>
<body>
<p class="test">这是一段很长的文本,这是一段很长的文本,这是一段很长的文本,这是一段很长的文本,这是一段很长的文本</p>
</body>
</html>Run instance »
Click the "Run instance" button to view the online instance
Popular Recommendations
- Word Embeddings
- Word Search II
- How to adjust the line spacing in Word Where to set the line spacing in Word
- How to adjust the line spacing in Word Where to set the line spacing in Word
- How to add pinyin to Word text Word text display pinyin tutorial
- How to set column page numbers in Word How to set column page numbers in Word
