我想减小图像的大小,我想作为我的html页面正文的背景。如果不使用任何样式标签,我怎么能这样做?
<body style="width:200px; height:100px; background:url(vote.jpg) no-repeat center scroll">
这不能按要求工作,因为它正在改变身体的高度和宽度,而不是图像。
答案 0 :(得分:-1)
尝试table
方法,即在表格中插入背景
<table background="vote.jpg">
<tr>
<td width="50" align="center">1</td>
<td width="50" align="center">2</td>
</tr>
</table>