首页 > 解决方案 > 表格的一列中的文本大小非常大,其他列中的文本大小非常小

问题描述

我的网页没有任何 CSS 或文本格式,但列文本非常大,而且在最糟糕的地方也是如此。

<table border="1">
  <tr>
    <th>Clinical Trials ID</th>
    <th>Official Title</th>
    <th>Contact Name</th>
    <th>Affiliation</th>
    <th>Phone</th>
    <th>email</th>
  </tr>
  <tr>
    <td><a href="https://clinicaltrials.gov/ct2/show/NCT01951326">NCT01951326</a></td>
    <td>A Randomized, Double Blind, Placebo-controlled, Multicenter, Parallel Group Study to Assess the Efficacy and Safety of Fixed-dose Combination RHB-104 in Subjects With Moderately to Severely Active Crohn's Disease</td>
    <td> Ira N Kalfus, MD</td>
    <td>RedHill Biopharma</td>
    <td> </td>
    <td></td>
  </tr>
</table>

我无法发布屏幕截图,因为我没有足够的代表

谢谢你的帮助

标签: html

解决方案


为您的 td 设置一个宽度,否则它将占用它可以自由占用的所有空间。

<table border="1">
  <tr>
    <th>Clinical Trials ID</th>
    <th>Official Title</th>
    <th>Contact Name</th>
    <th>Affiliation</th>
    <th>Phone</th>
    <th>email</th>
  </tr>
  <tr>
    <td><a href="https://clinicaltrials.gov/ct2/show/NCT01951326">NCT01951326</a></td>
    <td width="40%">A Randomized, Double Blind, Placebo-controlled, Multicenter, Parallel Group Study to Assess the Efficacy and Safety of Fixed-dose Combination RHB-104 in Subjects With Moderately to Severely Active Crohn's Disease</td>
    <td> Ira N Kalfus, MD</td>
    <td>RedHill Biopharma</td>
    <td> </td>
    <td></td>
  </tr>
</table>


推荐阅读