'어떻게' a '를 초과하는 등 텍스트 아이오아라라이오아라라이오아라라이오아라이오아라라 너비입니다 div' ('' 라고 200px) 처럼 랩된?
난 개방적인 CSS 와 같은 모든 종류의 솔루션 등을 포함한다.
그래서 같은 소프트 하이픈입니다 사용할 수 있습니다.
',' aaaaaaaaaaaaaaa& 아라라이오아라라 것이 특징이다.
이 나타나게 될 것이다
aaaaaaaaaaaaaaa-
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
경우.
div {
// set a width
word-wrap: break-word
}
& # 39, & # 39 는 줄 바꿈 ',' ie 브라우저는 CSS3 를 지원하는 솔루션에 대해서만 '은'.
가장 좋은 크로스 브라우저 솔루션을 사용할 수 있는 장소를 찾을 수 있는 긴 문장열 서버에 언어 (php 나 있는모든) ',' # 8203 간격으로 그들을 html 엔티티에는 &. 이 법인 분리 긴 단어 중에, 그리고 모든 브라우저에서 작동합니다.
예:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Ie, 크롬, 사파리, 파이어폭스, 오페라 사용할 수 있는 유일한 구현하므로 말을해야합니다 공백이 없는 경우 (예: 긴 URL) 입니다.
div{
width: 200px;
word-break: break-all;
}
난 완벽한 것으로 나타났습니다.
.wrap
{
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
Html 의 바디입니다 종료기:
<table>
<tr>
<td>
<div style="word-wrap: break-word; width: 800px">
Hello world, how are you? More text here to see if it wraps after a long while of writing and it does on Firefox but I have not tested it on Chrome yet. It also works wonders if you have a medium to long paragraph. Just avoid writing in the CSS file that the words have to break-all, that's a small tip.
</div>
</td>
</tr>
</table>
Css 에서 바디입니다 종료기:
background-size: auto;
table-layout: fixed;
예를 들어, a href = " (http://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/) 에서 < >, css, /a> tricks< ";;:
div {
-ms-word-break: break-all;
/* Be VERY careful with this, breaks normal words wh_erever */
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
끝 - < 스니핏 >;!
예를 들어, a href = ", https://kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/, > here< " 더 < /a>.;;
이 시도하시겠습니까
<! - begin 스니핏: js 숨기십시오: > 거짓값 -;
div{
display: block;
display: -webkit-box;
height: 20px;
margin: 3px auto;
font-size: 14px;
line-height: 1.4;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
끝 - < 스니핏 >;!
속성 텍스트 오버플로입니다: 줄임표 추가. 표시 및 선 종양이라고요 줄.
사용한 부트스트랩에. 내 html 코드를 것처럼 보인다.
<div class="container mt-3" style="width: 100%;">
<div class="row">
<div class="col-sm-12 wrap-text">
<h6>
text content
</h6>
</div>
</div>
</div>
CSS
.wrap-text {
text-align:justify;
}