Is Twitter Bootstrap suitable for touch screens?

て烟熏妆下的殇ゞ 提交于 2019-12-21 03:32:47

问题


I am considering using Twitter Bootstrap (TB) for a mobile web app. The next version of TB, version 3, claims to be "mobile-first". However, looking at the included Javascript files, I see almost exclusively "click" events, hardly any "touch" events used. TB relies on Jquery to handle the events. Also, there are lots of "hover" definitions in the CSS, which don't work on touch screens. Even so, I find lots of recommendations and tutorials about using TB in mobile web apps when Googling.

My question is: How well does Twitter Bootstrap work on touch screens in terms of performance (primarily with regards to speed and response time)?


回答1:


I've been developing with Twitter Bootstrap (v2) for a range of web applications that are also used on mobile platforms. You must keep in mind that Twitter Bootstrap is not a full on solution for all design needs. It "bootstraps" your project into not having to worry about certain things.

Bootstrap v3 has promised to do more "bootstrapping" for mobile platforms, but this doesn't mean you will not have to do certain pieces of development for any platform you wish to deploy for.

In case of working with Bootstrap v2, you can easily move around certain elements with the given CSS and a custom style. It's speed is marvelous and pretty much all modern mobile devices have excellent support for @media queries that allow you to easily target specific mobile sizes. For example; I use media queries in a specific file to make all buttons take up full width for more easy access on a touch device.

As far a Bootstrap v3 goes, I'm very curious as the Release Candidate hasn't really shown me anything that really changed the way I developed for mobile, yet.

Hope this helps you out.



来源:https://stackoverflow.com/questions/16759299/is-twitter-bootstrap-suitable-for-touch-screens

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!