当点击页面时,Android DIV 图像发生变化

发布于 2024-12-25 11:20:20 字数 650 浏览 4 评论 0原文

如果您在 Android 浏览器中打开任何弹出图像,然后单击页面上的任何位置,图像就会发生变化(颜色/清晰度/其他 - 我无法精确定义,因为我不是艺术家)。

要查看此效果,请打开一个带有弹出图像的站点,该图像是作为具有绝对定位的 div 实现的(例如 http:// highslide.com/——我用谷歌搜索的第一个网站)。该网站应该在 Android 浏览器中打开(我已经尝试过 Eclipse ADT 插件和 Kindle Fire 中的 Android 模拟器)。单击任何预览以弹出图像,然后点击页面(将手指放在屏幕上)并同时查看图像。

我的问题:这种影响是什么以及如何消除它?为什么我在 PC 和移动版 Safari 上都看不到它?我的网络应用程序也有同样的效果,它看起来很丑,而且似乎减慢了表单的速度,所以我想摆脱它。

图:

在此处输入图像描述

我放大了之前拍摄的两张照片的一部分点击箭头点和之后,并将它们插入到顶部以显示我正在谈论的内容。

问候,

If you open any popup image in the Android browser, then click in any place on the page, the image is being changed (colors/sharpness/whatever - I can't define precisely, since I'm not an artist).

To see this effect, open a site with a popup image, which is implemented as a div with absolute positioning (say, http://highslide.com/ -- the first site I've googled). The site should be open in the Android browser (I've tried Android emulator from Eclipse ADT plugin and Kindle Fire). Click on any preview to popup the image, then tap on the page (keep you finger on the screen) and look at the image the same time.

My question: what this effect is about and how to eliminate it? Why don't I see it neither on PC nor on Mobile Safari? I have the same effect with my web-app, where it looks ugly and seems to be slowing a form, so I want to get rid of it.

A figure:

enter image description here

I've enlarged a portions of two shots, made before tapping on the arrow point, and after, and inserted them on top to show what I'm talking about.

Regards,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怀里藏娇 2025-01-01 11:20:20

您的网络应用程序或网页没有任何问题,这只是 Android 的一个性能特征。当您滚动时,您可以在主屏幕上看到这一点,并且它会发生在任何滚动的应用程序中。

当您点击时,它会向 Android 发出信号,表明您可能会开始滚动。为此,它使用图像的压缩版本来使滚动更加平滑。

您在电脑上看不到这一点,因为您的电脑可以毫无问题地滚动浏览包含大量全分辨率图像的网页。至于为什么你在mobile safari上看不到它,我对这个平台的了解还不够多。

There's nothing wrong with your web app or your web page, this is simply a performance feature of Android. You can see this on the homescreen when you scroll and it happens in any application that scrolls.

When you tap, it signals to Android that you might potentially start scrolling. To prepare for this, it uses a compressed version of the images to make scrolling smoother.

You don't see this on your PC because your PC has no problem scrolling through a web page with tons of images at full resolution. As to why you don't see it on mobile safari, I don't know enough about the platform to say.

山人契 2025-01-01 11:20:20

如果页面上的每个图像都具有与 HTML/CSS 中指定的相同的物理尺寸,则此效果消失。这就是为什么我在弹出窗口中观察到这一点:它们的内部图像通常会调整大小。

我的心情很复杂。毕竟找到它有点满足,但对 Android 开发者编程这个功能感到讨厌。

If every image on the page has the same physical size as specified in HTML/CSS, this effect disappears. That's why I observed this in popups: their inner images usually are resized.

I have mixed feelings. Kinda satisfaction for finding it after all and hatred to Android developers for programming this feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文