引导按钮不在div内?

时间:2013-10-20 19:34:29

标签: html css twitter-bootstrap

如果其中的文字太长,我试图调整引导按钮的大小。

此刻它正在伸出div的另一端,看起来很傻。

这是我的代码:

<div class="row marketing">

    <div class="col-lg-7">

        <video id="video_player" class="video-js vjs-default-skin" autoplay preload="auto" width="100%" poster="http://video-js.zencoder.com/oceans-clip.png" data-setup="{}">
              <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
              <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track>
        </video>

    </div>

    <div class="col-lg-5">

      <div class="list-group">
          <a href="#" class="list-group-item"><span class="glyphicon glyphicon-ok-sign"></span> Cras justo odio</a>
          <a href="#" class="list-group-item"><span class="glyphicon glyphicon-ok-sign"></span> Dapibus ac facilisis in</a>
          <a href="#" class="list-group-item"><span class="glyphicon glyphicon-ok-sign"></span> Morbi leo risus</a>
          <a href="#" class="list-group-item"><span class="glyphicon glyphicon-ok-sign"></span> Porta ac consectetur ac</a>
          <a href="#" class="list-group-item"><span class="glyphicon glyphicon-ok-sign"></span> Vestibulum at eros</a>
      </div>

      <a class="btn btn-lg btn-success" href="#">Donec id elit non mi porta gravida at eget metus.</a>

    </div>

  </div>

谢谢, 安迪

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。我通过设置CSS属性来解决它:

white-space:normal

因为Bootstrap默认为nowrap