javascript - How do you make Bootstrap responsive on a phone but not a narrow desktop browser -


i've found page turning off responsiveness in bootstrap.

http://getbootstrap.com/examples/non-responsive/

what i'd have 1 page responsive on phone, not responsive when viewed on desktop browser has been resized narrow.

it looks of on page detecting device , using javascript. there simpler way i'm missing or other idea?

here's way force mobile menu toggle on phone might have worry disabling other breakpoints. 480 represents width of smartphone, can edit needed.

     $(window).resize(function() {      if ($(window).width() <=480 ) {       $('.navbar-collapse a').click(function(e) {        $('.navbar-collapse').collapse('toggle');      });      }      }); 

Comments

Popular posts from this blog

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -