2

我在 joomla 中使用 twitter 引导带,我遇到了一个小问题,我的左栏在平板电脑上消失了(它的意思是),但是当它消失时,内容不会占用左栏的空间,所以这很奇怪平板电脑的间隙...

我将如何解决这个问题?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>

任何帮助非常感谢。

4

1 回答 1

0

问题是因为 class="visible-desktop" 。使用此类,左侧栏将始终在桌面上可见,而在平板电脑和移动设备上将隐藏。

使用下面的媒体查询来排列列,以解决它们之间的空白。

@media (min-width: 768px) and (max-width: 979px) {
    .row-fluid .right_bar {
     width: 44.928%;

  }
}

这是一个 jsfiddle 演示列重排

于 2013-03-08T08:57:13.390 回答