我需要一个响应式的表格背景图像。我的问题是高度需要灵活,取决于里面有多少信息。我做成了这样:
body {
background-color: black;
}
<table style="width: 520px;background-image: url(http://wow.zamimg.com/images/wow/tooltip.png);background-size: cover;color:white">
<tr align="center" >
<td>Description1</td>
</tr>
<tr align="center" >
<td>Description2</td>
</tr>
<tr align="center" >
<td>Description3</td>
</tr>
</table>