我尝试了以下代码:
CSS:
.bg_left{
background-image: url(path/image.jpeg);
background-repeat: no-repeat;
background-position: left bottom;
background-color: #FF0000;
color:#FFFFFF;
height:150px;
}
table{width:100%;}
HTML:
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 responsive website tutorial</title>
</head>
<body>
<table>
<tr class="bg_left">
<td>Helloo
</td>
<td>Logout</td>
</tr>
</table>
</body>
</html>
但是为什么它在 chrome 中重复,而在 IE 和 Firefox 中运行良好?