Table Chrome 中的单元格未正确换行文本
Table cells not wrapping text correctly in Chrome
我有一个使用 bootstrap 样式表的 table,并且不可能使单元格正确换行为文本 Chrome。无论如何,它在 IE 和 Firefox 上运行完美。你可以在这里看到它:
<form action="todos" method="post">
<table class="table" border="1"> // Normal table using bootstrap stylesheet
<thead>
<tr>
<th>asdf</th>
<th>asdf<th>
...
</tr>
</thead>
<tbody>
<tr>
...
</tbody>
知道我做错了什么吗?
好像是用了word-wrap: break-word;尝试设置:
table td {
word-wrap: normal;
}
我有一个使用 bootstrap 样式表的 table,并且不可能使单元格正确换行为文本 Chrome。无论如何,它在 IE 和 Firefox 上运行完美。你可以在这里看到它:
<form action="todos" method="post">
<table class="table" border="1"> // Normal table using bootstrap stylesheet
<thead>
<tr>
<th>asdf</th>
<th>asdf<th>
...
</tr>
</thead>
<tbody>
<tr>
...
</tbody>
知道我做错了什么吗?
好像是用了word-wrap: break-word;尝试设置:
table td {
word-wrap: normal;
}