Bootstrap: 缩略图组件

配合响应式的栅格系统

 

 

<div class="container">
    <div class="row">
        <div class="col-lg-3 col-md-4 col-sm-6">    
           <div class="thumbnail">
                <img src="img/2.jpg">
            </div>
        </div>
        <!-- 其余3张图片 -->
        <div class="col-lg-3 col-md-4 col-sm-6">
            <div class="thumbnail">
                <img src="img/2.jpg">
            </div>
        </div>
        <div class="col-lg-3 col-md-4 col-sm-6">
            <div class="thumbnail">
                <img src="img/2.jpg">
            </div>
        </div>
        <div class="col-lg-3 col-md-4 col-sm-6">
            <div class="thumbnail">
                <img src="img/2.jpg">
            </div>
        </div>
    </div>
</div>

 

自定义内容

 

 

<div class="container">
    <div class="row">

        <div class="col-lg-3 col-md-4 col-sm-6">
            <div class="thumbnail">
                <img src="img/2.jpg">
                <div class="caption">
                    <h3>视频标题</h3>
                    <p>视频介绍,美女众多...</p>
                    <p>
                        <a href="#" class="btn btn-primary">试看</a>
                        <a href="#" class="btn btn-warning">购买</a>
                    </p>
                </div>
            </div>
        </div>

        <!--其余3个省略-->

    </div>
</div>

 

posted @ 2021-09-10 10:14  Jasper2003  阅读(74)  评论(0编辑  收藏  举报