在html< img width = xxx>中指定的图像宽度单位是什么? [英] what unit of image width specified in html <img width=xxx>?
问题描述
< img width = 350 src ='/ var / tmp.jpg'/>
那么宽度单位是多少?我猜这是在像素?如果这是像素,这是否意味着图像的大小实际上是相对于显示器的分辨率?我打开一个网页,在不同的机器上显示宽度为350的图像,并显示不同的分辨率。我测量屏幕上显示的图像的宽度,它们是相同的。那么,有什么办法可以找出图像的绝对宽度,以厘米或毫米(在PHP中)? 。答案必须是30个字符。所以我输入更多。
I am totally fresh to html language. In the image attached in the html, something we need to specify the width of the image by the following tag
<img width=350 src='/var/tmp.jpg'/>
So what is unit of the width here? I guess it is in pixel? If that's in pixel, does it mean that the size of the image actually relative to the resolution of the display? I open a webpage with a image shown in the width of 350 in different machine with different display of different resolution. I measure of the width of the image shown on the screen, they are the same. So is that any way to I figure out the absolute width of the image in cm or mm (in php)?
pixels. the answer must be 30 chars long. so I'm typing more.
这篇关于在html< img width = xxx>中指定的图像宽度单位是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!