twitter bootstrap for high resolution mobile displays

三世轮回 提交于 2019-12-23 01:36:07

问题


Twitter bootstrap is very awesome, but it is like hell when you want to give a good mobile site based on the collapse navbar part. How can I force twitter to use it and also to scale it in the right way. So it may look like facebook.

How it should look LG Optimus Black (480 x 800 pixel)

How it looks like (Lumia 920 1280 x 768 pixel)


回答1:


Try adding this to your <head>:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

This works using Bootstrap 3.




回答2:


This is my solution

@-ms-viewport {
    width: auto!important;
}

@-webkit-viewport {
    width: device-width;
}

@-moz-viewport {
    width: device-width;
}

@-ms-viewport {
    width: device-width;
}

@-o-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}


来源:https://stackoverflow.com/questions/18796992/twitter-bootstrap-for-high-resolution-mobile-displays

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