对于现代移动设备,最好使用 WML 还是 HTML?
有了当今的现代移动电话,是否还值得用 WML 对网站的移动版本进行编程?
大多数移动浏览器即使只有几年的历史也能在常规 HTML 中表现良好。 借助 WML,您显然可以更好地控制显示内容和不显示内容,而不必担心它无法在特定设备上运行,但是今天,随着移动浏览(iPhone、Android 等)的所有进步,它真的可以实现吗?最好走这条路?
我想知道最好的选择是否是使用 HTML4 文档,该文档比 WML 能做的更多花哨的功能,但又不完全是为现代桌面浏览器设计的华丽的超级壮观的 AJAX 化界面。
是的,我知道,这是客观的,并且与网站受众以及我想提供多大程度的支持有很大关系。 为了明确这个问题的范围,我在这里主要担心的是,放弃 HTML 的 WML 是否会摧毁我的大部分受众并让他们完全陷入困境。
编辑 Dr.Dredel 的观点:该网站不会被短信活动或任何类似的活动使用。 该网站是曲棍球比赛的活动预订网站。 目前,一些用户在手机上浏览它来注册不同的会话。
With today's modern mobile phones, is it still worth programming the mobile version of your site in WML?
Most mobile browsers even a few years old can manage to do okay in regular HTML. With WML, you are obviously given more control over what is displayed and what isn't with less fear of it not working on a particular device, but today, with all the advancements in mobile browsing (iPhone, Android, etc) is it really best to go this route?
I am wondering if the best option is instead to go with an HTML4 document that has a few more bells-and-whistles than what WML can do, but not quite the glorified super-spectacular AJAXified interface that one might design for a modern desktop browser.
Yes, I know, this is objective and has a lot to do with site audiences and how far I want to extend support. To put a scope to this question, my main concern here is whether foregoing WML for HTML is going to devastate a huge chunk of my audience and leave them completely stranded.
Edit for Dr.Dredel's point: the site would NOT be used by an SMS campaign or anything of the sort. The website is an event booking site for pickup games for hockey. Some users currently browse to it on their mobile phone to sign up for different sessions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
两者都做。 没有理由忽略浏览器字符串并为每个设备显示相同的标记。 WML 非常简单,您可以使用模板样式(您应该已经使用过)为所有用户提供自定义体验,无论他们使用什么设备。
那些拥有裸手机的人将获得满足其需求的可用界面,而那些拥有 PDA 手机的人将获得更好的界面和更多的选择,而那些拥有 iPhone 的人甚至可能会得到 iPhone 发烧友真正购买手机的目的。
如果您无法做到这一点,无论出于何种原因,请使用最小公分母来获得最大的可见性和使用率 - 这将使您的网站成功且足够有用,以便您可以负担得起使用真正的模板系统并走向理想状态。 这很可能是 WML,尽管即使是较旧的手机也可以使用非常简单的 HTML,但它的控制和易用性功能较少。
-亚当
Do both. There's no reason to ignore the browser string and display the same markup for every device. WML is simple enough that you can use template styles (which you should be using already) to provide a custom experience for all your useers, regardless of the device they use.
Those with bare cell phones will get a usable interface that meets their needs, while those with PDA phones get a nicer interface with more options, and those with the iPhone might even get the eye-candy iPhonophiles really bought their phone for.
If you can't do that, for whatever reason, go with the least common denominator to gain the greatest visibility and usage - that's what's going to make your site successfully and useful enough that you can afford to use a real templating system and move towards the ideal state. This is likely WML, although even older phones were ok with very simple HTML, it just has less control and ease of use features.
-Adam
我认为这个问题的主要问题是它无法确定您向用户提供的到底是什么,这将指示从人口统计角度来看谁会找到您的网站。
如果您的网站是通过基于短信的链接(通过一些全球营销活动)到达的,那么您需要尝试覆盖尽可能广泛的受众,因为几乎所有手机都允许用户在其短信客户端中单击,然后启动任何浏览器选项在那部电话上。
另一方面,如果您有一个需要手动浏览的网站,那么可以合理地预期,大多数人不会在他们蹩脚的伪浏览器上烦恼,因为即使是输入 url 的行为也是相当麻烦的。麻烦大。
我想说的是,如果您正在处理选项 B,那么您只需提供专为 Netscape 1.1 等浏览器量身定制的体验就非常安全(只需掸掉您在 1995 年所做的一切,就可以开始了!:)
I think the primary problem with this question is that it fails to identify what exactly it is that you're offering your users, which would instruct who, demographically, would find your site.
If your site is arrived at via SMS based links (through some global marketing campaigns) then you need to try to reach the widest possible audience, since almost all phones will allow a user to click within their SMS client and then launch whatever browser option is on the that phone.
If, on the other hand, you have a site which needs to be browsed over to manually, then there's a reasonable expectation that most people simple won't bother on their crappy pseudo browsers, because even the act of inputting the url is a fairly large hassle.
I would say that if you're dealing with option B you're pretty safe just delivering an experience that is tailored for a browser like Netscape 1.1 (just dust off whatever you were doing in 1995 and you're good to go! :)
绝大多数手机用户拥有的手机是在过去几年内购买的,并且任何拥有比该手机更旧的手机的用户都不太可能希望通过手机使用互联网。 就我个人而言,我认为您最好制作一个具有所有附加功能的高端“AJAXified”网站以及一个大多数用户都可以访问的标准 XHTML-MP 网站。
The vast majority of mobile phone users have a phone that was purchased within the last few years, and any users that have a phone older than that are unlikely to want to use the internet from their mobile. Personally I think you would be better of making a high-end 'AJAXified' site with all the bells and whistles and a standard XHTML-MP site that would be accessible to most users.
您应该将 XHTML-MP 用于网站的移动版本。 您将获得更好的非移动版本的连续性,并且它将适用于更多(特别是较新的)设备
You should use XHTML-MP for mobile versions of sites. You'll get better continuity with the non-mobile version and it will work with more (particularly newer) devices