问题
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