我使用png图像作为表内td的背景。我使用“background-size:cover”来使其响应。但背景图像在较小的窗口上变得模糊。它在全尺寸上很好。有什么办法可以防止这种情况发生?CSS3响应背景图像变得模糊
<table>
<tr>
<td style="background-image: url(image.png)">
<div></div>
</td>
</tr>
</table>
css:
table td{
background-position: center top;
background-repeat: no-repeat;
background-size: cover;
height: 96px;
}
您可以使用媒体查询将背景大小从封面改为不封面? – Jack 2014-09-23 08:04:05
是否尝试过,background-size:contains; – 2014-09-23 08:12:36