在html< img width = xxx>中指定的图像宽度单位是什么? [英] what unit of image width specified in html <img width=xxx>?

查看:146
本文介绍了在html< img width = xxx>中指定的图像宽度单位是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对html语言完全陌生。在html中附加的图片中,我们需要通过以下标记指定图片的宽度:

 < 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&lt; img width = xxx&gt;中指定的图像宽度单位是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆