php移动网站,需要建议

发布于 2024-10-17 19:46:25 字数 207 浏览 3 评论 0原文

我计划建立一个非常简单的移动网站,涉及表单提交和数据库存储,几年前我听说过一种叫做 wap 和 wml 的东西来制作此类网站,所以我在 google 上搜索 IDE 或 SDK,但它似乎所有与这些相关的页面都不再可用,我想知道......

无论如何,现在人们使用什么来构建移动网站(因为显然,我在这方面落后了很多)?如果您不介意的话,请给我提供今天如何构建移动网站的阅读材料,非常感谢

i am planning to build a very simple mobile website which involves form submission and database storing, few years ago i have heard something called wap and wml to make these kind of webs, so i search on google for the IDE or the SDK, but it seems that all the pages regarding those is no longer available, i wonder....

anyway, what do people use nowadays to build mobile websites (because obviously, i am way left behind about this) ? if you don't mind, please provide me reading materials on how to build mobile websites today, thank you very much

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

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

发布评论

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

评论(5

月野兔 2024-10-24 19:46:25

现在人们使用什么来构建移动网站

HTML 移动网站。

what do people use nowadays to build mobile websites

HTML.

岁吢 2024-10-24 19:46:25

这取决于

您想要定位高端智能手机还是仅支持基本 HTML/CSS 的旧手机?

通常,大多数移动网站都可以在一系列手机上运行,​​并使用 HTML5 或 XHTML-MP,如果您需要支持非常旧的手机,您可以使用 WML(否则不必费心)。

It depends,

Do you want to target high-end smartphones or older phones that only support basic HTML/CSS?

Typically most mobile websites work on a range of handsets and use HTML5 or XHTML-MP, if you need to support very old handsets you can use WML (otherwise don't bother).

北笙凉宸 2024-10-24 19:46:25

就我而言,WAP 和 WML 实际上已经消亡了。没有人使用它们。这曾经是移动网站的构建方式,但情况已经变得更好了。

如今,最好的选择就是使用 HTML、CSS 和 JavaScript。虽然您不想构建完整的桌面式网站,但您仍然希望构建低带宽消耗。部分问题在于您的目标平台。如果你只关心iPhone,那么这很简单。您可以在 Mobile Safari 中构建测试并完成它。如果您注册 Apple Developer Program 并下载 XCode 捆绑包,它会包含一个 Mobile Safari 模拟器。

支持 Android 手机也很容易,因为它们使用非常相似的浏览器(Chrome/WebKit)。当您想要包含 Blackberry 或 Windows Phone 时,事情会变得更加棘手。操作系统版本 6 之前的 Blackberry 有一个糟糕的浏览器,它只能处理基本的 HTML,并且有限或没有 CSS 和 JS。目前我还不知道 Windows Phone 7 上有哪些功能。

有一些 JavaScript 框架可以帮助您通过渐进增强向移动网站添加功能,并且它们可以帮助您处理触摸屏事件。 Google 的 Sencha Touch 和 jQuery Mobile。

WAP and WML are, as far as I'm concerned, effectively dead. Nobody uses them. It used to be the way mobile sites were built, but things have gotten much better.

These days your best bet is just to use HTML, CSS and JavaScript. You don't want to build a full desktop-style site though, you still want to build for low bandwidth consumption. Part of the issue is which platforms your are targeting. If you only care about iPhones, then it's really simple. You can build an test in Mobile Safari and be done with it. If you register for the Apple Developer Program, and download the XCode bundle, it includes a Mobile Safari emulator.

It's pretty easy to also support Android phones, as they use a very similar browser (Chrome/WebKit). It gets trickier when you want to include Blackberry or Windows Phone. Blackberry prior to OS version 6 has a terrible browser, which can only handle basic HTML, and limited or no CSS and JS. At this time I'm not aware of what the capabilities are on Windows Phone 7.

There are some JavaScript frameworks around that will help you add features to mobile sites via progressive enhancement, and they help you work with touchscreen events. Google for Sencha Touch and jQuery Mobile.

岁月打碎记忆 2024-10-24 19:46:25

人们倾向于像构建标准网站一样构建移动网站:HTML、CSS、JS。请参阅本文以更深入地了解:http://www.smashingmagazine.com/2010/11/03/how-to-build-a-mobile-website/

People tend to build mobile websites the same way they build standard websites: HTML, CSS, JS. See this article for a more in-depth look: http://www.smashingmagazine.com/2010/11/03/how-to-build-a-mobile-website/

晨敛清荷 2024-10-24 19:46:25

如果针对高端设备(iPhone、Android、iPad),您只需了解这些手持设备的浏览器应用程序即可。 Apple 有大量文档介绍如何为 iOS 设备呈现 Web 内容,以及如何向浏览器传达不同的首选项(例如页面是否能够捏合缩放,或者如果用户想要,应该使用什么图像作为快捷方式图标)将其保存到他们的 springpad(比图标更大的图像)),例如 本指南用于为 iPad 准备内容。

If targeting high-end devices (iPhone, Android, iPad), you'd need to just get to know the browser application for those handhelds. Apple has lots of documentation on presenting web content for the iOS devices, and how to communicate different preferences to the browser (like should the page be able to be pinch-zoomed, or what image should be used for a shortcut icon if the user wants to save it to their springpad (larger image than a favicon)), like this guide for preparing content for the iPad.

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