【问题标题】:Table cells not wrapping text correctly in Chrome表格单元格无法在 Chrome 中正确换行
【发布时间】:2017-01-31 21:55:48
【问题描述】:

我有一个使用引导样式表的表格,并且不可能使单元格正确换行以向 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>

知道我做错了什么吗?

【问题讨论】:

    标签: html css twitter-bootstrap html-table


    【解决方案1】:

    看起来像使用自动换行:break-word;尝试设置:

    table td {
        word-wrap: normal;
    }
    

    【讨论】:

      猜你喜欢
      • 2015-11-16
      • 2011-08-13
      • 1970-01-01
      • 1970-01-01
      • 2017-10-07
      • 2018-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多