L
L
Leonid2016-07-12 13:44:50
css
Leonid, 2016-07-12 13:44:50

The mechanism for enabling / disabling Bootstrap responsiveness for the site - how to implement the transition to the full version of the site?

There is a site made with Bootstrap 3.
There is a task to add a link on the site with the caption: " Full version of the site " - so that by clicking on it, the user on any device with any diagonal would see the site without Bootstrap adaptability to his device.
Those. in fact, you need a button to enable / disable Bootstrap responsiveness.
ps: please do not offer to make a separate mobile version of the site, the question is exactly what it is and is connected with the presence of only one (single) adaptive version of the site.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
Big_person, 2016-07-12
@easycode

Responsive layout is adaptive, which does not require any switching.
All components are placed on the page according to the grid getbootstrap.com/css/#grid
To hide and show individual blocks, use the responsive utilities getbootstrap.com/css/#responsive-utilities
If you just need to turn off responsiveness, then use<meta name="viewport" content="width=1024" >

L
Leonid, 2016-07-12
@easycode

I did not carefully read the Bootstrap manual, everything turned out to be quite simple: bootstrap-3.ru/getting-started.php#disable-responsive

A
Alex Glebov, 2016-07-12
@SkiperX

watch on your phone
creativeandcode.com/demos/responsive-view-full-sit...

T
tridcatij, 2016-07-12
@tridcatij

Alternatively, put all media queries in a separate css file. And just connect / disconnect it when you need it.

D
disday, 2019-07-08
@disday

Leonid , good afternoon! I also faced such a task - to implement exactly the mechanism for disabling / enabling adaptability, not just disable it. How did you decide?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question