javascript - CSS mobile media styles with manual toggling -


so i'm trying build mobile , desktop version of website simultaneously (using mediawiki engine, if interested). since don't have experience mobile device building, looking around mobile development practices. in end, feel media queries need do, because double-publishing on separate domains (like m.foo.com vs foo.com) not possible task.

the shortcoming css media queries, seems, apparent inability phone users view site in desktop format whenever want (google or youtube example of when accessed using phone).

is there way me freely toggle between desktop , mobile stylesheets developed media queries? using javascript bulky mobile device download?

i appreciate suggestions. thanks!

edit: clarification, yes, want click link or button on mobile style switch desktop style.

i'm 90% sure not possible css alone can accomplished php or javascript. shouldn't bulky use javascript.

some examples

php style switcher.

javascript style switcher

jquery style switcher


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -