CSS3 단어 속보 > 퍼블리셔팁

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.

CSS3 단어 속보 정보

CSS CSS3 단어 속보

본문

CSS3 단어 속보


CSS3 word-break속성은 줄 바꿈 규칙을 지정합니다.



970f7ed8ffa9df1df597855b97d0c6ff_1503033321_6386.png
 

CSS 코드는 다음과 같습니다.


p.test1 {

    word-break: keep-all;

}


p.test2 {

    word-break: break-all;

}



<!DOCTYPE html>

<html>

<head>

<style> 

p.test1 {

    width: 140px; 

    border: 1px solid #000000;

    word-break: keep-all;

}


p.test2 {

    width: 140px; 

    border: 1px solid #000000;

    word-break: break-all;

}

</style>

</head>

<body>


<p class="test1">This paragraph contains some text. This line will-break-at-hyphens.</p>


<p class="test2">This paragraph contains some text. The lines will break at any character.</p>


<p><b>Note:</b> The word-break property is not supported in Opera 12 and earlier versions.</p>


</body>

</html>

970f7ed8ffa9df1df597855b97d0c6ff_1503033349_2158.png
 
추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로