如何在IE中显示没有缩放,缩放等的z图像? [英] How can I display az image without zoom,scale etc.... in IE?

查看:72
本文介绍了如何在IE中显示没有缩放,缩放等的z图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个phonegap示例应用程序。

代码非常简单,只在绝对位置0,0上显示800x480px图像。

但是我的诺基亚Lumia 520(屏幕为800x480)图像太大。我尝试使用viewport元标记并询问另一个论坛(stackoverflow,prog.hu等),但没有人可以编写代码来显示正常大小的图像。

I have a phonegap sample app.
The code is very simple only display an 800x480px image on absolute position 0,0.
But on my Nokia Lumia 520 (screen is 800x480) the image is too big. I try viewport meta tag and ask another forum (stackoverflow, prog.hu etc) but nobody can write a code to display an image normal size.

<!DOCTYPE HTML>
<html>
<head>
  <meta name="MobileOptimized" content="320">
  <meta name="viewport" content="width=320; user-scalable=no" />
</head>
<body>
<img id="bg" src="images/800/bg.png" style=";top:0px;left:0px;">
</body>
</html>


谢谢你

Thanks

推荐答案

像素可以在设备上进行插值。 如果你想填满屏幕,你应该只使用合适的图像
Pixels can be interpolated on devices.  You should simply use fit image if you wish to fill the screen


这篇关于如何在IE中显示没有缩放,缩放等的z图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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