< META NAME ="视" ...标签不正确地在Android(三星Galaxy Tab 2)方向改变后工作正确地、方向、标签、工作

2023-09-06 11:32:41 作者:久愛不厭

所以我有这个标签定义的:

So I have this tag defined:

<meta name="viewport" content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no' />

我也试过:

<meta name="viewport" content='width=device-width, initial-scale=1.0, user-scalable=no' /> 

在Galaxy Tab的2我在测试我的网站上 - 这正确的块任何类型的双击或捏缩放

On the Galaxy Tab 2 I was testing my website on - this correctly blocks any type of double-tap or pinch zooming.

但只要我改变方向 - 我能再次放大!该行为很奇怪,因为我只能用,不进行缩放。我可以用双击,捏做到两者兼而有之。

But as soon as I change orientation - I can zoom in again! The behavior is strange as I can zoom in only, not out. And I can do it both with the double tap and pinch.

改变方向回不解决问题,以后每方向改变了这个问题...

Changing orientation back does not fix the problem, every subsequent orientation change has this issue...

任何人见过这个问题?

谢谢!

cierech

推荐答案

有同样的问题,并通过切换到HTML5解决了这个问题。这意味着:

Had the same problem and solved it by switching to HTML5. That means:

<!DOCTYPE html>
<html lang="en">