【发布时间】:2016-07-22 08:17:44
【问题描述】:
String type 1:最古老的古典希腊文和拉丁文文字之间几乎没有空格,可以写成 boustrophedon(交替方向)。随着时间的推移,文字方向
字符串类型 2: asdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasd
Example when only with string type 1
当我将字符串类型 2 添加到表中时,字符串将从表中延伸出来
如果我使用 css text-overflow 来控制文本:
Here is with text-overflow css
我的问题是如何让字符串类型 1 显示为第一个图像,字符串类型 2 显示在 text-overflow 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文件
-
你可以用这个
table td, table th { word-wrap: break-word; }