значения свойства:
div {
width
:
100px
;
border
1px
solid
#8E8E8E
}
.a {
word-wrap:
normal
div { width: 100px; border: 1px solid #8E8E8E; } .a { word-wrap: normal; }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
type
"text/javascript"
src
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></
</
body
div
class
"a"
>heeeeellowoooorld</
br
id
"div1"
"b"
/*JavaScript*/
document.getElementById("div1").style.wordWrap = "break-word";
/*jQuery*/
$(document).ready(function () {
$(".b").css({ "word-wrap": "break-word" });
});