移动网站的轻量级样板替代品

发布于 2025-01-06 17:40:29 字数 461 浏览 1 评论 0原文

用于构建移动网站的良好轻量级移动网站样板解决方案是什么?我正在构建一个移动网站,希望找到一个可以在未来项目中再次使用的良好解决方案。

我找到了一些:

  • JQuery Mobile (http://jquerymobile.com/)
  • HTML5 Boilerplate Mobile (http://html5boilerplate.com/mobile)
  • Skeleton (http://www.getsculpture.com/)

虽然看起来像JQuery Mobile 受到青睐,它看起来确实是一个巨大的负载,需要交付给每个移动用户。 HTML5 Boilerplate Mobile 看起来是一个不错的选择,因为我在过去的项目中使用过 HTML5BP。

Skeleton 似乎是最轻量级的解决方案,但我担心它将来可能会缺乏支持。我对此了解不够,也许有人可以解释一下?

What is a good lightweight mobile website boilerplate solution for building mobile websites? I'm building a mobile website and would like to find a good solution that I can use again for future projects.

I've found a few:

  • JQuery Mobile (http://jquerymobile.com/)
  • HTML5 Boilerplate Mobile (http://html5boilerplate.com/mobile)
  • Skeleton (http://www.getskeleton.com/)

Although it seems like JQuery Mobile is favored, it does seem like a huge payload to deliver to every mobile user. HTML5 Boilerplate Mobile looks like a nice alternative, as I've used HTML5BP for past projects.

Skeleton seems to be the most lightweight solution, but I'm concerned about its possible lack of support in the future. I don't know enough about it, maybe someone could shed some light?

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

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

发布评论

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

评论(2

夜巴黎 2025-01-13 17:40:29

坚持使用 jQuery Mobile,您就错误地认为它具有巨大的“有效负载”。它是使用 Unobtrusive JavaScript 实现的。源标记非常轻量且简单。

Stick with jQuery Mobile and you are incorrect to assume it has a huge "payload". It is implemented using Unobtrusive JavaScript. Source markup is extremely light and simple.

赠我空喜 2025-01-13 17:40:29

你需要问自己,你到底在寻找什么:

  • 你在寻找一个没有 JS 的 CSS 框架、带有一些 JS 的 CSS 框架还是一个完整的 CSS/JS 混合框架?
  • 您是否正在寻找一个同时支持桌面和移动设备的框架或专门针对移动设备的框架?

根据您要查找的内容,需要考虑一些选项:

  • Twitter BootstrapZurb Foundation 是两个最流行的 CSS 框架选项,并且都带有一些 JS 和工作非常适合现代浏览器,但如果你还需要支持IE8-。
  • 如果你不需要 JS 功能,并且希望占用空间尽可能小,同时仍然支持 IE6+,你可以尝试我自己的 Cascade Framework Light(只有 2Kb)。
  • 如果您想要一个专门针对移动设备的 CSS 框架,您可以尝试类似 Clank 的东西。
  • 如果您正在寻找完整的混合 CSS/JS 框架,您可能需要研究类似 Ionic< /a> 或 移动 Angular UI

这些框架中的每一个在架构和重点上都非常不同。其中哪一个(或者我在这里没有提到的许多其他选项中的哪一个)最适合您实际上取决于您的需求。

You need to ask yourself what exactly it is that are you looking for :

  • Are you looking for a CSS framework with no JS, with some JS or a full CSS/JS hybrid framework?
  • Are you looking for a framework that supports both desktop and mobile or something exclusively focused on mobile?

Some options to consider, depending on what you're looking for :

  • Twitter Bootstrap and Zurb Foundation are the two most popular options of CSS frameworks and both some with some JS and work great with modern browsers, but might be lacking if you still need to support IE8-.
  • If you don't need JS features and want to have a footprint as light as possible while still supporting IE6+, you could try my own Cascade Framework Light (which is only 2Kb).
  • If you want a CSS only framework focused exclusively on mobile, you could try something like Clank.
  • If you are looking for a full hybrid CSS/JS framework, you might want to look into something like Ionic or Mobile Angular UI.

Each of these frameworks is so very different in architecture and focus. Whichever of them (or whichever of the many others that I haven't mentioned here) works best for you really depends on your needs.

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