最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Bootstrap媒體對象學習使用

 更新時間:2017年03月07日 15:04:48   作者:Dannii_  
這篇文章主要為大家詳細介紹了Bootstrap媒體對象的相關資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下

Bootstrap媒體對象的學習使用,供大家參考,具體內容如下

基本結構:

<div class="media">
  <a class="pull-left" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
    <img class="media-object" src="bg.jpg" alt="媒體對象">
  </a>

  <div class="media-body">
    <h4 class="media-heading">媒體標題</h4>
    這是一些示例文本。這是一些示例文本。
    這是一些示例文本。這是一些示例文本。 
  </div>
</div>

<ul class="media-list">
  <li class="media">
    <a class="pull-left" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img class="media-object" src="bg.jpg" alt="通用的占位符圖像">
    </a>

    <div class="media-body">
      <h4 class="media-heading">媒體標題</h4>
      <p>這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。</p>
    </div>
  </li>
  <li class="media">
    <a class="pull-right" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img class="media-object" src=bg.jpg" alt="通用的占位符圖像">
    </a>

    <div class="media-body">
      <h4 class="media-heading">媒體標題</h4>
      這是一些示例文本。這是一些示例文本。
      這是一些示例文本。這是一些示例文本。
    </div>
  </li>
</ul>

媒體對象輕量標記、易于擴展的特性是通過向簡單的標記應用 class 來實現的。

在 HTML 標簽中添加以下兩種形式來設置媒體對象:

(1).media:該 class 允許將媒體對象里的多媒體(圖像、視頻、音頻)浮動到內容區(qū)塊的左邊或者右邊。
(2).media-list:如果你需要一個列表,各項內容是無序列表的一部分,可以使用該 class??捎糜谠u論列表與文章列表。

嵌套的媒體對象:

<ul class="media-list">
  <li class="media">
    <a class="pull-left" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img class="media-object" src="bg.jpg"
         alt="通用的占位符圖像">
    </a>

    <div class="media-body">
      <h4 class="media-heading">媒體標題</h4>
      <p>這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。
        這是一些示例文本。這是一些示例文本。</p>

      <!-- 嵌套的媒體對象 -->
      <div class="media">
        <a class="pull-left" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
          <img class="media-object" src="bg.jpg"
             alt="通用的占位符圖像">
        </a>

        <div class="media-body">
          <h4 class="media-heading">嵌套的媒體標題</h4>
          這是一些示例文本。這是一些示例文本。
          這是一些示例文本。這是一些示例文本。

          <!-- 嵌套的媒體對象 -->
          <div class="media">
            <a class="pull-left" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
              <img class="media-object" src="bg.jpg"
                 alt="通用的占位符圖像">
            </a>
            <div class="media-body">
              <h4 class="media-heading">嵌套的媒體標題</h4>
              這是一些示例文本。這是一些示例文本。
              這是一些示例文本。這是一些示例文本。               
            </div>
          </div>

        </div>
      </div>

      <!-- 嵌套的媒體對象 -->
      <div class="media">
        <a class="pull-left" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
          <img class="media-object" src="bg.jpg"
             alt="通用的占位符圖像">
        </a>
        <div class="media-body">
          <h4 class="media-heading">嵌套的媒體標題</h4>
          這是一些示例文本。這是一些示例文本。
          這是一些示例文本。這是一些示例文本。
        </div>
      </div>
    </div>
  </li>

  <li class="media">
    <a class="pull-right" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img class="media-object" src="bg.jpg"
         alt="通用的占位符圖像">
    </a>

    <div class="media-body">
      <h4 class="media-heading">媒體標題</h4>
      這是一些示例文本。這是一些示例文本。
      這是一些示例文本。這是一些示例文本。       
    </div>
  </li>
</ul>

效果圖:

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。

相關文章

最新評論

天水市| 沅江市| 轮台县| 江山市| 洱源县| 常宁市| 宁国市| 新绛县| 双柏县| 衡南县| 交口县| 渭南市| 许昌县| 桦甸市| 双柏县| 吴江市| 高陵县| 常宁市| 阜康市| 海盐县| 皋兰县| 静安区| 康马县| 德化县| 都江堰市| 广安市| 崇礼县| 南乐县| 普安县| 延寿县| 齐河县| 林周县| 桃园市| 东乌珠穆沁旗| 澳门| 朔州市| 惠东县| 阿图什市| 博野县| 涟水县| 时尚|