Bootstrap 3: horizontal scrollbar on iPhone after form focus

纵然是瞬间 提交于 2019-12-23 02:46:36

问题


In Bootstrap 3, there seems to have been an issue with the fluid grid causing a horizontal scrollbar to appear on small devices. My question is different...

I'm not getting any scrollbar, unless I click a text input. On an iPhone, there is an automatic zoom on the current field. This is ok (I guess), but after leaving the field, the zoom is not removed, so the content is clipped and there's an ugly horizontal scrollbar.

Is there a way to prevent the zoom? Or maybe tell mobile safari to set the zoom back to what it was?


回答1:


First: you can create fluid-responsive tables. But you do not need it. If you don't give the <table> the class="responsive" the horizontal scroolbar doesn´t appear.

If you want to disable the zoom on small devices use this:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

Hope, it helps :)



来源:https://stackoverflow.com/questions/18964793/bootstrap-3-horizontal-scrollbar-on-iphone-after-form-focus

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