[스타일시스] 글자 줄바꿈과 줄바꿈 금지

테이블 안에 영문글을 쓸때 줄바꿈이 되지 않아 당황한 적이 있을 것입니다.
이때 간단히 스타일시스를 적용하면 됩니다.

1. 우선 강제로 줄바꿈(영문이 줄바꿈 되지 않을때)
글자하나하나를 인식하여 줄바꿈을 합니다.
<table width="300">
<tr>
<td width="50%" style="word-break:break-all">YesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForums</td>
<td width="50%">YesYo.comMintStateForumsYesYo.comMintStateForums</td>
</tr>
</table>

2. 줄바꿈 금지
<table width="300">
<tr>
<td width="50%" nowrap>YesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.com</td>
<td width="50%">YesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForumsYesYo.comMintStateForums</td>
</tr>
</table>
2010/09/02 18:13 2010/09/02 18:13

Trackback Address :: https://youngsam.net/trackback/1354