gpt4 book ai didi

cross-browser - Kindle Fire 上的 Amazon Silk 浏览器是否支持视口(viewport)元标记?

转载 作者:行者123 更新时间:2023-12-03 17:34:03 26 4
gpt4 key购买 nike

在 Kindle Fire 上查看时,我正在尝试使用 viewport 元标记来缩放 HTML 内容。

我已经设置了以下测试页面:

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=2.5, maximum-scale=2.5, minimum-scale=2.5, width=device-width, user-scalable=no" />
</head>
<body>
<div style="width: 100px; height: 100px; background: red;">Hello World</div>
</body>
</html>

例如,如果我将数字从 2.5 更改为 1.0,这会导致 iPhone 4S 上的内容按比例缩小。但是,在 Kindle Fire 上的 Amazon Silk 浏览器中查看时,它似乎对内容的大小没有影响。

有没有其他人经历过这个?我的标记中是否存在可能导致此问题的问题?

注意:我尝试将“桌面或移动 View ”浏览器设置更改为自动、移动和桌面 - 这些设置都没有改变页面外观。

最佳答案

支持:

Keep in mind the following when developing web content for Silk and Fire devices:

• The viewport is the portion of the browser dedicated to displaying the webpage. Viewport size andscreen size for mobile devices are not necessarily identical. They differ because the browser uses upsome screen real estate to show its chrome. You can use the viewport meta element (p. 36) tospecify attributes of the viewport, including width and height.


单独测试每个属性以确定对每个选项的特定支持:
  • 宽度
  • 高度
  • 初始规模
  • 最小规模
  • 最大规模
  • 用户可扩展

  • 引用文献
  • Amazon Silk Developer Guide: CSS3 Support - viewport meta element (pdf)
  • Screen Resolution - Amazon Silk
  • Dev.Opera — An Introduction to Meta Viewport and @viewport
  • CSS Device Adaptation Module Level 1: Properties
  • Evidence Versus Proof
  • The 4 Types of Evidence ~ Writing Simplified
  • 关于cross-browser - Kindle Fire 上的 Amazon Silk 浏览器是否支持视口(viewport)元标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10223407/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com