繁体   English   中英

Boostrap网格未对齐

[英]Boostrap Grid not aligned

我为Wordpress安装了引导程序主题,但是遇到网格对齐问题。

请参阅:在产品和服务中单击此处

“种子”应位于左侧,“其他产品”应与第二个元素“ LeafLine”对齐。

那可能是什么?

这是一个简单的修复。 您只需要将内容放入两行或两列即可。 由于第一个左侧块上有更多文本,因此“种子”块被推出。 您只需要在行下方增加填充。

行示例: http : //www.bootply.com/PjWnLEAOMT

<div class="row">
              <div class="col-sm-6">
          <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">Primo</h3>
              This is Leaf Space main project. A super lightweight two-stage launch vehicle able to bring up to 50 kg to Low Earth Orbit. The use of composite materials and hybrid proprulsive technology make Primo extremely safe, reliable and enviromental friendly, ensuring precise orbit inserction and extremely low risk of failure. All the components are designed with reusability in mind for future implementation of a reusable launch vehicle.            </div>
          </div>
        </div>
                <div class="col-sm-6">
          <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">LeafLine</h3>
              A ground stations network exclusively dedicated to nano, micro and smallsats is under development. LeafLine can support several orbits and different transmission protocols. A direct encrypted online link ensures simple and safe data collection and control transmissions to satellite operators.            </div>
          </div>
        </div>
</div>
  <div class="row">
                <div class="col-sm-6">
          <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">Seed</h3>
              Thanks to its great versatility and reliability, hybrid propulsion can be used for several applications. Leaf Space is developing Seed, a next generation hybrid rocket motor designed for in space applications such as:
<ul>
    <li>orbital maneuvers</li>
    <li>re-orbiting</li>
    <li>de-orbiting</li>
</ul>
The first design is dedicated to nano and microsats, other future improved versions will serve also heavier satellites.            </div>
          </div>
        </div>
                <div class="col-sm-6">
          <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">Other Services</h3>
              Other Services
To complete the offer of Leaf Space, a series of services dedicated to nano and microsatellites will be available, also in collaboration with other companies. Among them:
<ul>
    <li>transportations</li>
    <li>technical advice</li>
    <li>satellite integration in the payload vain</li>
    <li>safety and law issues</li>
</ul>            </div>
          </div>
        </div>
              </div>

有两列的示例: http : //www.bootply.com/bms2sLZ1ZJ

<div class="row">
              <div class="col-sm-6">
          <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">Primo</h3>
              This is Leaf Space main project. A super lightweight two-stage launch vehicle able to bring up to 50 kg to Low Earth Orbit. The use of composite materials and hybrid proprulsive technology make Primo extremely safe, reliable and enviromental friendly, ensuring precise orbit inserction and extremely low risk of failure. All the components are designed with reusability in mind for future implementation of a reusable launch vehicle.            </div>
          </div>
        <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">Seed</h3>
              Thanks to its great versatility and reliability, hybrid propulsion can be used for several applications. Leaf Space is developing Seed, a next generation hybrid rocket motor designed for in space applications such as:
<ul>
    <li>orbital maneuvers</li>
    <li>re-orbiting</li>
    <li>de-orbiting</li>
</ul>
The first design is dedicated to nano and microsats, other future improved versions will serve also heavier satellites.            </div>
          </div></div>
                <div class="col-sm-6">

        <div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">LeafLine</h3>
              A ground stations network exclusively dedicated to nano, micro and smallsats is under development. LeafLine can support several orbits and different transmission protocols. A direct encrypted online link ensures simple and safe data collection and control transmissions to satellite operators.            </div>
          </div><div class="media services">
                        <div class="media-body">
              <h3 class="media-heading">Other Services</h3>
              Other Services
To complete the offer of Leaf Space, a series of services dedicated to nano and microsatellites will be available, also in collaboration with other companies. Among them:
<ul>
    <li>transportations</li>
    <li>technical advice</li>
    <li>satellite integration in the payload vain</li>
    <li>safety and law issues</li>
</ul>            </div>
          </div></div>
</div>

显然,就填充而言,第二种方法会产生更清晰的结果。

您也可以仅在叶子线div之后添加clearfix元素来修复此布局。

<div class="clearfix"></div>

可在此处找到更多信息: http : //getbootstrap.com/css/#grid-sensitive-resets

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM