不使用CSS样式调整背景图像的大小?

时间:2015-04-28 19:45:09

标签: html

我想减小图像的大小,我想作为我的html页面正文的背景。如果不使用任何样式标签,我怎么能这样做?

<body style="width:200px; height:100px; background:url(vote.jpg) no-repeat center scroll">

这不能按要求工作,因为它正在改变身体的高度和宽度,而不是图像。

1 个答案:

答案 0 :(得分:-1)

尝试table方法,即在表格中插入背景

<table  background="vote.jpg">
<tr>
  <td width="50" align="center">1</td>
  <td width="50" align="center">2</td>
</tr>
</table>