是否可以禁用jQuery的移动响应式设计? [英] Is it possible to disable jQuery's mobile responsive design?

查看:65
本文介绍了是否可以禁用jQuery的移动响应式设计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这很简单。我使用jQuery Mobile UI构建了一个布局,但我不想要响应式布局功能。是否可以将其删除?

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?

推荐答案

试试这个?...将包装div包装到<的所有内容中code> data-role =content section。

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.

喜欢这样,

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



CSS



CSS

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

这篇关于是否可以禁用jQuery的移动响应式设计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆