[英]Bootstrap Navbar not working properly in mobile view after custom styling
[英]bootstrap table styling not working properly
好吧,向您展示問題,我將僅向您顯示一個屏幕截圖:
問題是有一個水平滾動條,但是我想如果文本在一個單元格中較長,則文本只會換一行,並且單元格會變大。
在這里,您可以看到該表的標記。 我正在使用最新的引導程序版本
<article class="col-lg-9 col-md-9 col-sm-9 pull-right">
<table class="table table-striped table-condensed">
<thead>
<tr>
<td>Room</td>
<td>Player</td>
<td>Text</td>
</tr>
</thead>
<tbody>
<?php
$chatLog = new ChatLogParser('C:\AtWar\Service\Logs\2014-01-29_chat.log');
$logs = $chatLog->parseToObject();
foreach($logs AS $log)
{
echo "<tr><td>".$log[0]."</td><td><strong>".$log[1]."</strong></td><td>".$log[2]."</td></tr>";
}
?>
</tbody>
</table>
</article>
檢查是否有white-space: nowrap
單元格上的white-space: nowrap
。 如果是這樣,請將其更改\\覆蓋為white-space: normal
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.