HTML/CSS/CSS Attributes and Javascript Style Properties/word break

Материал из Web эксперт
Перейти к: навигация, поиск

"word-break" Example

    
<html>
<body>
<div id="myD" 
     style="width:400px; background-color:red;">
This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph.
This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph.
</div>
<br>
<input type="button" 
       value="Set wordBreak property to break-all" 
       onclick="myD.style.wordBreak="break-all"">
</body>
</html>