在bootstrap中扩展pic

时间:2015-11-30 11:37:28

标签: html css image twitter-bootstrap

我有一个引导画廊,图像是缩略图,点击它们时,它们显示在一个隐藏的div中......很好。

现在无论图像有多大,它们总是适合同样大小的div但是......

我现在有一些小图像,但它们没有按比例放大 - 它们出现在比pop本身小的'popup'div中。我使用img-reponsive而没有运气。

任何人都知道bootstrap如何处理小图像扩展?

我的模态弹出式div

   <!-- modal popup dialog-->
   <div class="modal fade" id="image-gallery" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">×</span><span class="sr-only">Close</span>
                    </button>
                     <h4 class="modal-title" id="image-gallery-title"></h4>
                </div>
                <div class="modal-body">
                    <img id="image-gallery-image" class="img-responsive" src="" />
                </div>
                <div class="modal-footer">
                    <div class="col-lg-2">
                        <button type="button" class="btn btn-primary" id="show-previous-image">Previous</button>
                    </div>
                    <div class="col-lg-8 text-justify" id="image-gallery-caption">This text will be overwritten by jQuery</div>
                    <div class="col-lg-2">
                        <button type="button" id="show-next-image" class="btn btn-default">Next</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

我的bootstrap html

                <div class="col-xs-6  col-sm-4 col-md-4 col-lg-2">
                    <a class="thumbnail" href="#" data-image-id="" data-toggle="modal" data-title="" data-caption="" data-image="/img/cakes/photo_sq48.jpg" data-target="#image-gallery">
                        <img class="img-responsive" src="/img/cakes/photo_sq48.jpg" alt="photo_sq48 missing" />
                    </a>
                </div>

0 个答案:

没有答案