1

如何设置 <th> 标签或 <table> 的高度。我发现 height=600px; 作为属性,但它只是从屏幕顶部向下移动 600 像素,但没有将表格的高度设置为 600 像素;

 <table>
 <tr>
 <th style="width : 400px ;height:600px">
 <marquee direction=up behavior="scroll">
  hello
 </marque>
 </th>
 </tr>
 </table>

我只是在学习更多地掌握表格和品牌标签。我需要在 < th > 标签中从下到上向上滚动一些文本打招呼,但我无法设置高度。如果我使用direction=left或正确,它的工作效果很好,因为我增加了宽度,但是如何设置 < th > 或 < table > 的高度。好吧,当我输入文本时它会增加,但我想明确地这样做

4

2 回答 2

3

就表格而言,您正在正确地进行操作,以便您marquee垂直扩展至其容器只需添加style="height: 100%;"到其中

于 2011-09-10T11:52:50.993 回答
1

我认为通过添加高度为 100% 的样式将解决您的问题。

  <marquee direction=up behavior="scroll" style="height:100%">
  hello
 </marquee>
于 2011-09-10T12:02:35.480 回答