douzhong1907 2019-06-25 12:02
浏览 97

在表格单元格中使用text-rotate属性而不使用default nowrap

Using the rotate text attribute, it seems impossible to avoid the default nowrap on the table cells

I'm trying to turn left around 90 degrees, a specific table headers

<table class="table mt-1" style="table-layout:fixed;width:100%;word-wrap:break-word;">
  <thead>
    <tr>
      <th></th>
      <th>ITEMS</th>
    </tr>
    <tr>
      <th>ATIVOS</th>
      <th text-rotate="90" style="white-space:normal;">Item 1</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Ativo 1</td>
      <td></td>
    </tr>
  </tbody>
</table>

Actually, it's outputting a table header cell with no wrapping, causing a print on 2 pages, i expected this rotation but with wrapping.

Wrong:

enter image description here

Right:

enter image description here

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 shape_predictor_68_face_landmarks.dat
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制