字符串類型1:他最古老的古典希臘文和拉丁文寫作在單詞之間很少或沒有空格,並且可以寫成boustrophedon(交替方向)。隨着時間的推移,文字方向如何處理字符粘在一起的長字符串
字符串類型2: asdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasd
Example when only with string type 1
當我添加字符串類型2到表中的字符串將從表伸出
如果我使用css文本溢出來控制文本:
Here is with text-overflow css
我的問題是我怎麼能有string類型1表示作爲第一圖像和字符串2型顯示文本溢出CSS
感謝您的幫助提前!
table class="table">
<thead>
<tr>
<th>#</th>
<th>Rules</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
@foreach ($companyrule as $companyrules)
<tr class="bu">
<th><?php echo $i++; ?></th>
<th> {{ $companyrules->rules}}</div></th>
</tr>
@endforeach
</tbody>
</table>
添加你的CSS文件 – Zoe
您可以使用此'table td,table th word-wrap:break-word; }' – Phil