WordPress:Styling for Mobile

来自站长百科
Fludlen讨论 | 贡献2008年7月12日 (六) 15:38的版本
跳转至: 导航、​ 搜索

Styling for Mobile devices (cell phones, some PDAs, etc) can be accomplished in much the same way as you can customize the style for printed pages.

可以与自定义设计可以打印的网页近乎相同的方式,来设计移动的电器(手机,一些PDAs,等等)。

The only difference between the two is that instead of using a media type of "print", you'll use a media type of "handheld".

设计这两种的不同点在于,不是用媒体类型的"打印",你使用媒体类型的"handheld"。

User agents (web browsers) decide which CSS media type to use based on what they are doing. Much like the "print" media type is used by browsers whenever they print a document, the "handheld" media type is used by many different small-screen browsers, when present.

使用代理(网络浏览器),根据不同类型的CSS媒体类型,执行什么任务,决定使用那种CSS媒体类型。与"print"媒体类型非常相似的是,打印一份文件的时候,就会由浏览器使用,"handheld"媒体类型呈现的时候,会由许多不同的small-screen浏览器使用。


One of the things you might consider doing for small screens, is, for example, hiding the sidebars and other elements that are not text. Or, if you use a fixed width page, you'll probably want to eliminate that fixed width restriction, and perhaps make the blog entirely simple text format, allowing it to wrap properly on small screens.

使用small screens时候,你需要考虑的一件事是,例如,隐藏工具条和其它的非文本的内容。或者,如果使用一个定宽网页,你可能想要删除定宽的限制,而且可能使得博客文本格式更加简单,使得文本在small screens上能够合适地呈现。

If you lack a small screen web device to use, there are emulators available that can view your site in this mode. The Opera Mini Emulator can view your site, although the Opera Mini Beta Simulator is much easier to use.

如果你缺少small screen网络器件,这些是可以得到的emulators,可以在这种模式中访问你的站点。Opera Mini Emulator可以访问你的站点,但是Opera Mini Beta Simulator使用起来,更容易。

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.