强制要求文字不换行:

div{
white-space:nowrap;
}

要求文字自动换行:

div{
word-wrap: break-word;
word-break: normal;
}