0

我在 Twitter Bootstrap 脚手架页面的 .well 中放置一些 div 时遇到了一些麻烦。我一直在研究它,但我的 CSS 知识有限,我主要是自学。

http://jsfiddle.net/hEvwR/

它应该看起来像这样:

模拟

这最初是在 Jade 中,但我将它转换为问题。我也喜欢此页面上有关最佳实践的任何建议。

4

1 回答 1

1

http://jsfiddle.net/hEvwR/2/

改变

    <div class="span5">
      <p><strong>Enter Your Mobile Phone Number</strong>
      </p>
      <input id="features-demo-number" type="text" placeholder="555-123-4567" style="text-align:center;padding:10px 12px;font-size:16px;margin-top:10px;" class="input-medium"/>
      <div class="pull-left">
        <p><strong>(Optional) Enter a MLS identification number for a more personalized demo</strong>
        </p>
        <input id="features-demo-mls-number" type="text" placeholder="123456789" style="text-align:center;padding:10px 12px;font-size:16px;margin-top:10px;" class="input-medium"/><br/>
        <button id="features-demo-customer" class="btn btn-primary btn-large">Send <strong>Buyer</strong> Notification <i class="icon-share-alt icon-white"></i>
        </button>
      </div>
      <div class="pull-right">
        <video id="video-preview" controls="controls" preload="auto" poster="images/poster.png" width="250" height="140" data-setup="{}" class="video-js vjs-default-skin">
          <source src="https://s3.amazonaws.com/textoad.com/assets/textoad.mp4" type="video/mp4">
          </source>
        </video><a href="/signup" style="margin-top:20px;margin-left:0px;font-size:18px;padding-left:20px;padding-right:20px;text-align:center;" class="btn btn-large btn-primary">Sign Up Now</a>
      </div>
    </div>

    <div class="span5">
      <div class="pull-left">
        <p><strong>Enter Your Mobile Phone Number</strong></p>
        <input id="features-demo-number" type="text" placeholder="555-123-4567" style="text-align:center;padding:10px 12px;font-size:16px;margin-top:10px;" class="input-medium"/>
        <p><strong>(Optional) Enter a MLS identification number for a more personalized demo</strong>
        </p>
        <input id="features-demo-mls-number" type="text" placeholder="123456789" style="text-align:center;padding:10px 12px;font-size:16px;margin-top:10px;" class="input-medium"/><br/>
        <button id="features-demo-customer" class="btn btn-primary btn-large">Send <strong>Buyer</strong> Notification <i class="icon-share-alt icon-white"></i>
        </button>
      </div>
      <div class="pull-right">
        <video id="video-preview" controls="controls" preload="auto" poster="images/poster.png" height="140" data-setup="{}" class="video-js vjs-default-skin">
          <source src="https://s3.amazonaws.com/textoad.com/assets/textoad.mp4" type="video/mp4">
          </source>
        </video><a href="/signup" style="margin-top:20px;margin-left:0px;font-size:18px;padding-left:20px;padding-right:20px;text-align:center;" class="btn btn-large btn-primary">Sign Up Now</a>
      </div>
    </div>

并添加

.span5{width:auto;}
#video-preview{width:210px!important;}
.span5>.pull-left{width:210px}
于 2012-09-05T19:35:59.913 回答