【问题标题】:Css, gif in a table, 100% of viewport height表格中的 css、gif、视口高度的 100%
【发布时间】:2013-03-25 13:11:07
【问题描述】:

我有一张桌子,在一个 td 标签内有一个 gif 图像:

<table id="wrapper">
  <tr>
     <td><img src="as.gif" width="auto" height="100%"></td>         
  </tr>
</table>

我尝试了数千种方法来使 gif 成为 100% 的视口,但不知何故它不起作用!这是我的 CSS:

html, body, #wrapper {
 height:100%; width: 100%; margin: 0; padding: 0; border: 0;
}

table {height:100%}

td {height:100%}

tr {height:100%}

#wrapper td {
text-align: center;
 }

【问题讨论】:

标签: html css html-table gif


【解决方案1】:

你试过了吗

table tr td img { height : 100% }

【讨论】:

    猜你喜欢
    • 2018-12-18
    • 2017-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-10
    • 2018-08-14
    • 1970-01-01
    相关资源
    最近更新 更多