自举相册的异常行为

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了自举相册的异常行为相关的知识,希望对你有一定的参考价值。

我想使用html,css,bootstrap以矩阵形式显示组成员的照片(计数30)。但是有些照片已从其原始位置移至下一个块,而使该块为空。(所有照片均为相同的长宽比)。这是基本块:-

<div class="col-md-3 col-sm-6 col-xs-12">
    <div class="team-member">
    <!-- Memebr Photo, Name & Position -->            
        <div class="member-photo">
        <a href="#"><img alt="Name" src="Img.jpg"></a>
            <div class="member-name"> Member_Name       <span>style="width: -moz-max content;">Member_info</span>
            </div>        
        </div>
     </div>
</div>
答案
我建议使用此模板:

<div class="container-fluid"> <div class="row"> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> </div> <div class="row"> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> </div> <div class="row"> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 "> <div class="card"> <img src="https://img.etimg.com/thumb/msid-68721417,width-643,imgsize-1016106,resizemode-4/nature1_gettyimages.jpg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> </div> </div> </div> <div class="col-md-2 ">

以上是关于自举相册的异常行为的主要内容,如果未能解决你的问题,请参考以下文章

Seekbar进度drawable异常行为onPause

带有自举程序的日期选择器对齐的问题

WebView 无法加载 Imgur 相册

片段 getActivity 不起作用

程序 内存 自举

异常和TCP通讯