【问题标题】:HTML5 how to make table borders even?HTML5如何使表格边框均匀?
【发布时间】:2016-01-30 04:20:03
【问题描述】:

我有一个大学作业要做,我有一个问题。 这是我应该做的:

蓝色边框是均匀的。在我的网站上:

事实并非如此。是否有任何 CSS 可以使它们均匀?

<table>
    <tr>
        <th>Module Description</th>

       </tr>
       <tr>
       <td>The successful learner will, through the use of a realistic commercial scenario, take a project through the software development lifecycle. They must take their project from problem statement through the significant phases of a software project. </td>
       </tr>
       <tr>
            <th>Learning Outcomes</th>
       </tr>
       <tr>
         <td>On a successful completion of this module the learner will/should be able to do...</td>
       </tr>
</table>

【问题讨论】:

  • 欢迎来到 Stack Overflow!寻求代码帮助的问题必须包含在问题本身中重现它所需的最短代码。见How to create a Minimal, Complete, and Verifiable example
  • 是的,有 CSS 可以使它们变得均匀,但是如果不共享您的代码,这将是一个猜谜游戏。
  • @@AdamBuchananSmith 我相信我使用的是非常简单的 html5。这可能有点混乱。 &lt;table&gt; &lt;tr&gt; &lt;th&gt;Module Description&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;xxxx. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Learning Outcomes&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;xxx&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
  • 我仍然不知道你所说的均匀边界是什么意思。您的意思是您希望所有蓝色标题单元格的宽度相同?

标签: css html html-table border


【解决方案1】:

我不知道 width="100%" 属性。这就是我的问题的答案。抱歉这个误导性问题:D

【讨论】:

    猜你喜欢
    • 2012-04-04
    • 1970-01-01
    • 2011-02-20
    • 2012-11-07
    • 2019-09-01
    • 1970-01-01
    • 2011-07-23
    • 2017-09-15
    • 2021-11-16
    相关资源
    最近更新 更多