Is it possible to disable jQuery's mobile responsive design?

我只是一个虾纸丫 提交于 2020-01-04 07:18:37

问题


It's pretty straightforward. I've built a layout using jQuery Mobile UI, but i don't want the responsive layout functionality. Is it possible to remove it?


回答1:


Try this?... wrap a wrapper div to all of your contents in the data-role="content" section.

Then give the fixed width to this wrapper.

Like that,

HTML

<div data-role="content">
    <div class="resize_box">
        <!-- your content here -->
    </div>
</div>

CSS

.resize_box{
    width:500px;
    margin:0 auto;
}


来源:https://stackoverflow.com/questions/16924081/is-it-possible-to-disable-jquerys-mobile-responsive-design

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