【发布时间】:2013-02-25 01:08:04
【问题描述】:
我正在尝试学习使用 Twitter 引导程序。它适用于桌面和响应式工作。假设我正在使用 span8 和 span4。我不知道如何强制 iPad 纵向视图将 span4 堆叠在 span8 下。
我在 head 部分、视口和响应式 CSS 文件中有正确的标签。
有什么想法吗?
更新:
这就是我所拥有的。当我缩小 webbrowser 窗口时,我可以看到它是如何响应的(最终 span4 在 span8 下移动)。如果我在 iPad 上处于纵向模式,不希望 span8 和 span4 彼此相邻堆叠,而是希望 span8 然后 span4 堆叠在 span8 下方。
在标题中
<link rel="stylesheet" href="./css/bootstrap.css">
<link rel="stylesheet" href="./css/bootstrap-responsive.css">
在正文中
<div class="container">
<div class="row">
<div class="span8">
<?php while ( have_posts() ) : the_post() ?>
<h4><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" ><?php the_title( ); ?></a></h4>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
<div class="span4">
hello this is a test to see if columns are fluid.
</div>
</div>
</div>
在页脚
<script src="./js/bootstrap.js"></script>
【问题讨论】:
-
你能不能 jsfiddle 或更好的响应使用
row-fluid链接 twitter.github.com/bootstrap/scaffolding.html#fluidGridSystem