如何区分智能手机和其他手机?

发布于 2024-09-05 03:07:52 字数 392 浏览 2 评论 0原文

我希望改进我们的移动网站,为不明确的智能手机类别以下的手机提供一些简单的内容,并为该类别以上的手机提供一些更有趣的内容。我对这个项目的 WAP/WML 不感兴趣。我正在构建一个 ASP.Net 4 MCV 2 应用程序并使用 MBDF

我想知道的是在使用 MBDF 时如何最好地定义这种差异?屏幕尺寸、Javascript、SportsTouchScreen 等都与其他内容一起包含在 MBDF 中,但我不确定在哪里划清界限,以及哪里的数据对于广大设备来说是最准确的。

你们中的那些人正在为这种硬件和软件的传播开发什么?软件分裂了?

谢谢, 丹尼斯

·P.S.我已经对 xHTML MP1.0 - 1.2 以及实现的最佳实践进行了研究,以确保广泛的覆盖范围,但我不想将较新的手机限制在基线可以看到的范围内。

I'm looking to revamp our mobile site with something simple for phones below the ambiguous smart phone category and something a little more interesting for the phones above this category. I'm not interested in WAP/WML for this project. I'm building a ASP.Net 4 MCV 2 app and using MBDF

What I'd like to know is how best to define this differentiation when using MBDF? Screen size, Javascript, SpportsTouchScreen etc. are all in MBDF along with others but I'm not sure where to draw the line and where the data is most accurate for the broad number of devices.

What do those of you out there developing for this spread of hardware & software split on?

Thanks,
Denis

P.S. I've done my research on xHTML MP1.0 - 1.2 and the best practises for implementation to ensure broad coverage but I don't want to restrict the newer phones out there to what the base line can see.

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

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

发布评论

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

评论(3

非要怀念 2024-09-12 03:07:53

我个人使用简单的移动浏览器检测脚本并将最大屏幕宽度限制为 240px。我还使用简单的 AJAX 和 JavaScript 调用。

上述设置对于 90% 的访问者来说效果很好,但我的网站不是业务关键型网站。

您可以尝试 http://wurfl.sourceforge.net/ 但 .net api 不如 PHP一

I personally use simple mobile browser dedection script and limit max screen width to 240px. I also use simple AJAX and JavaScript calls too.

Above setup works fine for 90% of my visitors but my sites aren't business critical sites.

You can try http://wurfl.sourceforge.net/ but .net api is not as good as PHP one

¢好甜 2024-09-12 03:07:53

因此,在对自己进行了一些测试之后,我想我将继续测试它们是否支持使用 MBDF 的 JavaScript 和 Touch。沙子里的这条线并不完美,但对我来说似乎是最好的。

So after a bit of testing myself I think I'm going to stick with testing if they support JavaScript and Touch using the MBDF. This line in the sand isn't perfect but it seems like the best out there to me.

旧梦荧光笔 2024-09-12 03:07:53

这是一个关于使用 JavaScript 进行浏览器检测的简洁小教程

浏览器检测

Here is a neat little tutorial on Browser Detection using JavaScript

Browser Detection

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