我想使用CSS製作單表背景,但是我無法獲取表格。這裏是我的代碼示例:設置表類中的CSS圖像背景故障
<html>
<head>
<style type="text/css">
body {background-image:url('http://www.example.com/images/image1.jpg');}
table.background { background: url('http://www.example.com/images/image2.gif') no-repeat; }
</style>
</head>
<body>
<table class="background" style="width:400px;height:500px;> <tr><td>
<h1>Hello World!</h1></td></tr></table>
</body>
</html>
爲什麼我看不到輸出中顯示的Hello World語句?
你真的應該使用文本編輯器語法高亮。它會更快地抓住這一點。 – RustyTheBoyRobot