Can I use bootstrap 3 together with jQuery Mobile?

后端 未结 3 1335
一整个雨季
一整个雨季 2020-12-12 23:31

I have read many \"bootstrap vs. jQuery mobile\" articles. It is quite clear that they both have different aims. So what about combining them?

Besides other, I like

3条回答
  •  星月不相逢
    2020-12-13 00:10

    Personally I think jQuery Mobile has more features than you really need, also it locks you into a way of building which isn't flexible. It starts to get buggy and messy when you have many panels with different animations and usually gets you 80% of the way very quickly, but then takes a long time to do custom things.

    I would use twitter bootstrap and then add plugins to support features you need.

    Bootstrap has lots of unofficial plugins you can add to imitate the functionality of jQuery Mobile: http://bootsnipp.com/resources

    there is a guide here to use the swipe events from jQuery Mobile only: http://lazcreative.com/blog/adding-swipe-support-to-bootstrap-carousel-3-0/

    Or you can use your own plugin to manually add the swipe events: http://stephband.info/jquery.event.swipe/

    If you want an expandable sidebar menu you can easily add it yourself:

    -webkit-transition: width 0.35s ease;
    -moz-transition: width 0.35s ease;
    -o-transition: width 0.35s ease;
    transition: width 0.35s ease;
    

    http://jsfiddle.net/Osis/Mns8q/ http://codepen.io/krichnafsky/pen/cuhkL http://coding.smashingmagazine.com/2013/01/15/off-canvas-navigation-for-responsive-website/

提交回复
热议问题