我在 joomla 中使用 twitter boot strap,我遇到了一个小问题,我的左栏在平板电脑上消失了(这是怎么回事),但是当它消失时内容不会占用左栏的空间所以平板电脑上有这个奇怪的差距......
我该如何解决这个问题? JSFIDDLE
这是 HTML:
<div class="row-fluid">
<!--LEFT-->
<div class="span3 pull-left left_bar visible-desktop">
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<!--LEFT-->
<!--CONTENT-->
<div class="span6 content pull-left">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
</div>
<!--CONTENT-->
<!--RIGHT-->
<div class="span3 pull-right right_bar hidden-phone">
t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
</div>
<!--RIGHT-->
</div>
非常感谢任何帮助。
最佳答案
问题是因为 class="visible-desktop"。使用此类,左侧栏将始终在桌面上可见,并在平板电脑和移动设备上隐藏。
通过使用如下所示的媒体查询来排列列,以解决列之间的空白区域。
@media (min-width: 768px) and (max-width: 979px) {
.row-fluid .right_bar {
width: 44.928%;
}
}
这是一个 jsfiddle 演示 columns rearrage
关于html - Bootstrap 让 span 在 other 不再可见时占用空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15289246/