手机和网络开发的局限性是什么

发布于 2024-09-30 16:26:36 字数 271 浏览 0 评论 0原文

真的很简单..我被要求做一个移动网站(直接 html + css (+也许稍后会使用 jquery mobile))。该网站需要通过网络浏览器支持新型智能手机和旧型诺基亚/(Symbian OS)。撇开怀疑和保留不谈,任何没有智能手机的人都会费心访问这个网站,它仍然需要支持它。

我的第一个问题是旧手机是否支持 PNG 图像和透明度...但这让我产生了一个更广泛的问题,即为旧手机平台进行开发有哪些限制,是否有任何东西让移动网络开发人员陷入困境并陷入困境。他们摸索了一下午……

手机有什么局限性?

simple really.. I am have been asked to do a mobile site (straight html + css (+ maybe jquery mobile later on)). The site will need to support the new type smart phone and the old type Nokia/(Symbian OS) with the web browser. Doubts and reservations aside as to anyone without a smart phone would bother visiting this site it still needs to support it.

My first question is do older phones support PNG images and transparancey... But this has led me to a much broader question of what are some of the limitations of developing for older phone platforms is there anything that has caught mobile web devs out and had them scratching their head for an afternoon..

what are the limitations of mobile phones?

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

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

发布评论

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

评论(2

﹂绝世的画 2024-10-07 16:26:36

根据您需要支持的具体手机,您可能会遇到一些麻烦。

您需要考虑的一些事项:

您需要考虑各种屏幕尺寸。

大屏幕将能够显示更大的图像,但较小的屏幕将需要较小版本的图像。

是的,正如您怀疑的那样,并非所有浏览器都支持所有图像格式。

您需要支持触摸屏和非触摸屏设备吗?如果这样做,您需要考虑需要触摸的物品的大小。

用户通常想要与移动版本网站不同的东西。您应该考虑到这种不同的背景来构建移动版本。

不同的移动浏览器在呈现 HTML 方面有自己的怪癖。

最安全的做法是假设除最新的智能手机外不支持 JavaScript。如果你回溯得更远,那么支持充其量是不一致的。

CSS 支持也因浏览器而异。避免尝试用 CSS 做任何巧妙的事情。

一些较旧的浏览器也不支持单独文件中的 CSS 或 JS。

您需要了解不同浏览器需要的不同文档类型。

单一的垂直滚动布局通常最适合移动网页。

优化一切以提高性能。与宽带 PC 相比,手机处理下载内容的能力较弱,而且下载数据的时间很可能更长。

并在实际设备上进行测试。特别是对于旧设备。

Depending on exactly which phones you need to support you could be in for some headaches.

A few of the things you need to consider:

You need to consider a massive variety of screen sizes.

Large screens will be able to show bigger images but smaller screens will require smaller versions of images.

Yes, as you suspect, not all browsers support all image formats.

Do you need to support touch screen and non touch screen devices? If you do, you'll need to consider the size of items that need to be touched.

Users normally want different things from mobile verisons of websites. You should build the mobile version with this different context in mind.

Different mobile browsers have their own quirks with regard to rendering HTML.

It's safest to assume no javascript support except in the latest smartphones. If you go back further than that the support is inconsistent at best.

CSS support also varies across browsers. Avoid trying to do anything clever with CSS.

Some older browsers also don't support CSS or JS in separate files.

You need to be aware of different doctypes that different browsers require.

A single, vertically scrolling layout, is usually best for mobile web pages.

Optimize everything for performance. Phones are less powerful at processing what's downloaded and data is very likley to take longer to download than compared with a PC on broadband.

And test on actual devices. Especially for older devices.

衣神在巴黎 2024-10-07 16:26:36

有些旧手机支持 PNG,有些则不支持。

一些较旧的手机支持具有透明度的 PNG,有些则不支持。

如果您绝对必须拥有看起来不错的图像,请将它们保存为与网站相匹配的背景颜色并保存为 JPG - 那么您就获得了两全其美的效果。

对于较新的手机 - 可以使用 PNG 透明度支持。

Some older phones do support PNG, some don't.

Some older phones support PNG with transparency, some don't.

If you absolutely must have images that look good, save them with a background colour that matches the site, and as a JPG - then you've got the best of both worlds.

For newer phones - go for it with PNG transparency support.

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