Image height property
Definition and Usage
height
Set or return the image height property value.
height property Specify the height of the image.
This property can also return the height of the image using CSS style settings (see the example below).
Tip:Use width property Set or return the image width property value.
Example
Example 1
Change the height of the image to 300px:
document.getElementById("myImg").height = "300";
Example 2
Return the height of the image:
var x = document.getElementById("myImg").height;
Example 3
Change the height and width of the image to 300px and 450px respectively:
document.getElementById("myImg").height = "300"; document.getElementById("myImg").width = "450";
Example 4
Return the height of the image using CSS style settings:
var x = document.getElementById("myImg").height;
Syntax
Return height property:
imageObject.height
set height property:
imageObject.height = پیکسلو
کمپنی کا انداز
مقدار | وصف |
---|---|
پیکسلو | پیکسلو کی چوڑائی (مثلاً height="100"). |
تکنیکی تفصیلات
بازگشت: | اعداد، تصویر کی چوڑائی کا نمائش، پیکسلو میں. |
---|
بrowser کی مدد
کروم | ایج | فائرفاکس | سافری | آپریا |
---|---|---|---|---|
کروم | ایج | فائرفاکس | سافری | آپریا |
پشتیبندی | پشتیبندی | پشتیبندی | پشتیبندی | پشتیبندی |
متعلقہ صفحات
HTML مراجع دستور:HTML <img> height کا انداز