最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

logicalYDPI Property

Internet Development Index

Retrieves the normal number of vertical dots per inch (DPI) of the system's screen.

Syntax

[ nNormDPI = ] screen.logicalYDPI

Possible Values

nNormDPIInteger that receives the DPI.

The property is read-only. The property has no default value.

Remarks

On most systems, there is no difference between horizontal and vertical DPI. The normal DPI on most systems is 96.

When Internet Explorer is adjusting the scale of the screen, the value of this property does not equal the value of the deviceYDPI property.

For information about how Internet Explorer 6 and later can adjust the scale of the display on screens with higher-than-normal DPI, see Adjusting Scale for Higher DPI Screens.

Examples

The following examples use the logicalYDPI property to retrieve the normal vertical DPI of the screen.

This example uses the deviceYDPI and logicalYDPI properties to calculate the vertical scale factor that Internet Explorer is applying. The function in this example returns 1 if Internet Explorer is not adjusting the scale of the screen.

<script>
function fnScaleFactorY() {
var nScaleFactor = screen.deviceYDPI / screen.logicalYDPI;
return nScaleFactor;
}
</script>

This example uses the zoom property of the BODY element to adjust the scale of the document "manually" if Internet Explorer is not adjusting the scale of the screen and the user's vertical DPI is higher than normal. This is a simple but imprecise way to make a document look the same on higher resolution screens. You can achieve finer control over the layout of your documents by modifying the properties of individual elements or groups of elements.

<script>
// change layout on HighDPI screens when IE not scaling
function fnScaleManually()
{
// normal DPI
var constNorm = 96;
// scaling is off and DPI higher than normal
if ((screen.deviceYDPI == screen.logicalYDPI)
&& (screen.deviceYDPI > constNorm))
{
document.body.style.zoom =
constNorm / screen.logicalYDPI;
}
}
</script>

Applies To

screen

See Also

deviceXDPI, deviceYDPI, logicalXDPI
安溪县| 昌江| 武穴市| 多伦县| 突泉县| 西安市| 翁牛特旗| 天祝| 襄城县| 体育| 新乡县| 塘沽区| 金堂县| 务川| 吉安市| 定兴县| 海宁市| 象州县| 谢通门县| 临夏县| 咸宁市| 岐山县| 应用必备| 巨野县| 隆化县| 孙吴县| 石渠县| 六盘水市| 卓尼县| 临沧市| 清涧县| 金湖县| 鹤岗市| 页游| 镇赉县| 房山区| 福泉市| 鹿邑县| 芜湖县| 策勒县| 萨迦县|