为什么html中body设置了zoom后页面上的<img>不会变大的?

html-css012

为什么html中body设置了zoom后页面上的<img>不会变大的?,第1张

<body ><img src="images/6_5_002[1].png">

<form name="form1" method="post" action="">

<input type="text" name="textfield" id="textfield">

<input type="reset" name="button" id="button" value="重置" onClick="alert()">

<div style="zoom:2background-image:url(images/6_5_002%5B1%5D.png)">

<img src="images/6_5_002[1].png">

</div>

</form>

</body>

在DIV层中设置zoom:2那么只有这个层中会变大,如果设置body中zoom:2那么body中的元素都会变大.你说背景层会变大<img>不会,在我测试来看都会变大的

对了你用的是什么浏览器啊这个zoom属性是IE专有的

让html的表格中单元格的内容居中显示的方法如下:

1、新建一个html5文件。

2、创建一个宽度为300px,三行四列的表格并写入内容。

3、通过css选择table标签控制表格内容居中,text-align:center;

扩展资料:

<table>标签定义 HTML 表格。

1、简单的 HTML 表格由 table 元素以及一个或多个 tr、th 或 td 元素组成。

2、tr 元素定义表格行,th 元素定义表头,td 元素定义表格单元。

3、更复杂的 HTML 表格也可能包括 caption、col、colgroup、thead、tfoot 以及 tbody 元素。