JSFiddle - React, Tailwind, and code Playground
by camel2243
HTML
<h3>word-break: normal;</h3>
<div class="word-break--normal">
The very long english pargraph. (testtestetstesttest)
一個非常長的句子。(測試 測試 測試)
</div>
<hr />
<h3>word-break: break-all;</h3>
<div class="word-break--break-all">
The very long english pargraph. (testtestetstesttest)
一個非常長的句子。(測試 測試 測試)
</div>
<hr />
<h3>word-break: keep-all;</h3>
<div class="word-break--keep-all">
The very long english pargraph. (testtestetstesttest)
一個非常長的句子。(測試 測試 測試)
</div>
CSS
div{
width: 90px;
background-color: rgba(100, 100, 100, 0.5);
}
.word-break--normal{
word-break: normal;
}
.word-break--break-all{
word-break: break-all;
}
.word-break--keep-all{
word-break: keep-all;
}