优化 Palm Pre 的网页

发布于 2024-08-02 21:30:56 字数 503 浏览 3 评论 0原文

我正在为我的预申请构建一个支持页面。

我遇到的问题是页面上的内容非常小,因此用户必须手动放大才能阅读。

我已经制作了页面,以便没有任何内容非常宽或高,但由于某种原因,当您第一次在 Pre 上导航时,所有内容都非常“缩小”。

我注意到像维基百科这样的网站有针对 Pre 进行完美优化的版本。如何让我的页面像维基百科一样以“全尺寸”开始?

更新:

我当前正在测试的极其简单的页面

在上面的页面上,我尝试将每个元素的宽度设置为 310px 和 100%,结果始终相同。

我想我可以通过给所有东西一个静态宽度,然后让所有东西使用非常大的字体大小来实现这一点。我只是猜测有一个“更好的方法”,即某种方法让预浏览器知道它不需要开始缩小到“正常”网页的大小(似乎默认缩放宽度约为 1024 像素,尽管实际分辨率为 320 像素)。

I'm in the process of building a support page for my pre application.

I'm having a problem where the content on the page is very small, so the user has to manually zoom in to read it.

I've made the page so that there is nothing very wide or tall, but for some reason everything is very "zoomed out" when you first navigate there on the Pre.

I've noticed that sites like wikipedia have versions that are perfectly optimized for the Pre. How can I make my pages start out "full-sized" the way wikipedia does?

Update:

The extremely simple page that I am currently testing with.

On the above page I have tried setting the width for every element to both 310px and to 100%, the result is always the same.

I figure I can accomplish this by giving everything a static width and then making everything use a very big font size. I'm just guessing that there is a "better way", i.e. some way to let the pre browser know that it doesn't need to start zoomed out to the size of a "normal" web page (it seems that the default zoom is about 1024px wide, even though the actual rez is 320px).

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

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

发布评论

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

评论(2

掩于岁月 2024-08-09 21:30:56

我在 webOSDev 论坛上找到了执行此操作的正确方法。

标题中应包含以下内容:

<meta name="viewport" content="width=device-width"/>
<meta name="viewport" content="initial-scale = 1.0"/>

这样做的优点是,当用户将设备切换为横向模式时,所有内容都会适当缩放,而无需任何造型体操。

I found out the proper way to do this on the webOSDev forums.

The following should be in the header:

<meta name="viewport" content="width=device-width"/>
<meta name="viewport" content="initial-scale = 1.0"/>

This has the advantage that when the user turns the device into landscape mode, everything scales appropriately, without any styling gymnastics.

汐鸠 2024-08-09 21:30:56

发布问题页面的 URL 在这里会有很大帮助。

一般来说,为了在智能手机上良好地显示,页面的设计必须是“流动的”(以百分比形式获取 100% 的宽度 - 不以像素为单位指定),以便在不同的屏幕分辨率下使用最多的空间。该设计支持的最小宽度应约为 300 像素,以适应 320x480 屏幕而无需缩放。

Posting a URL of a problem page would be a big help here.

In general, to show nicely on smartphones, the design of the page has to be "fluid" (taking 100% of the width in percent - not specified in pixels) to use the most space in differing screen resolutions. The minimal width supported by the design should be about 300 pixels, to fit without zooming on 320x480 screens.

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