0
樣式詞的斷行斷與溢流
#test {
overflow-x: auto;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
width: 99%;
word-wrap: break-word;
}
#wrap {
margin: 0 auto; width: 50%;
}
詞語的DIV ID = 「測試」 像遊:
no //this is end of first line
thing //this is beginning of the next line
<div id="wrap">
<div id="test"></div>
</div>
原詞是nothing
如何解決那?