我正在尝试设置此html文件的样式,以便在侧面(成员)旁边有一个面板,在右边有图片,并排成三行。我的问题是:


如何使包含图像的引导程序列实际上位于引导程序面板的右侧?
图像的行之间有一些空间?


以下是我的代码及其在浏览器中的显示方式:

 <div class="container">
   <div class="row">
      <div class="col-sm-9 col-md-3 col-lg-3">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h2 class="panel-title">Members</h2>
          </div>
          <div class="panel-body">
            <h3 class="panel-title">Faculty</h3>
            <h3 class="panel-title">Students</h3>
            <h3 class="panel-title">Alumni</h3>
          </div>
        </div>
      </div>
  </div>
      <!-- vvvvvvvvvvvvvv-FACE OF THE ORG-vvvvvvvvvvvvvv -->
  <div class="col-lg-9">
    <div class="row">
      <div class="col-sm-9 col-md-3 col-lg-3">
        <img class="image-rounded" src="img/left2.jpg">
      </div>

      <div class="col-sm-9 col-md-3 col-lg-3">
        <img class="image-rounded" src="img/right.jpg">
      </div>

      <div class="col-sm-9 col-md-3 col-lg-3">
        <img class="image-rounded" src="img/right1.jpg">
      </div>

      <div class="col-sm-9 col-md-3 col-lg-3">
        <img class="image-rounded" src="img/left2.jpg">
      </div>

      <div class="col-sm-9 col-md-3 col-lg-3">
        <img class="image-rounded" src="img/right.jpg">
      </div>

      <div class="col-sm-9 col-md-3 col-lg-3">
        <img class="image-rounded" src="img/right1.jpg">
      </div>

    </div>

     </div>
   </div>


html -  bootstrap 行和列的样式html-LMLPHP

感谢您提供的所有帮助! :)

最佳答案

<div class="container">
   <div class="row">
      <div class="col-sm-6">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h2 class="panel-title">Members</h2>
          </div>
          <div class="panel-body">
            <h3 class="panel-title">Faculty</h3>
            <h3 class="panel-title">Students</h3>
            <h3 class="panel-title">Alumni</h3>
          </div>
        </div>
      </div>

      <!-- vvvvvvvvvvvvvv-FACE OF THE ORG-vvvvvvvvvvvvvv -->
  <div class="col-sm-6">
    <div class="row">
      <div class="col-sm-3">
        <img class="img-rounded" src="img/left2.jpg">
      </div>

      <div class="col-sm-3">
        <img class="img-rounded" src="img/right.jpg">
      </div>

      <div class="col-sm-3">
        <img class="img-rounded" src="img/right1.jpg">
      </div>
    </div>
       <div class="row">
      <div class="col-sm-3">
        <img class="img-rounded" src="img/left2.jpg">
      </div>

      <div class="col-sm-3">
        <img class="img-rounded" src="img/right.jpg">
      </div>

      <div class="col-sm-3">
        <img class="img-rounded" src="img/right1.jpg">
      </div>

    </div>

     </div>
        </div>
   </div>





试试这个代码。我编辑代码。
和img舍入的css提供空白或边距。

10-07 14:02