[英]div class="list-group" is not working on bootstrap4
I have been working on project with bootstrap 4 on one of its section I want to show images on row and inside of row I have list-group which displays images from folder but when the images are displayed bootstrap 4 the size is too big, But if I switch my bootstrap version to 3.3.7 images displayed correctly without oversizing(original sizes).我一直在使用 bootstrap 4 的其中一个部分进行项目我想在行和行内显示图像我有列表组,它显示文件夹中的图像但是当图像显示 bootstrap 4 时,尺寸太大,但是如果我将引导程序版本切换到正确显示的 3.3.7 图像而不会过大(原始尺寸)。 So does this mean bootstrap 4 is no more supporting list-group?
那么这是否意味着引导程序 4 不再支持列表组? or did I miss something here is my code.
还是我错过了什么是我的代码。
when using bootstrap 4 the above image comes in full size.当使用 bootstrap 4 时,上面的图像是全尺寸的。
code inside my bootstrap 4我的引导程序 4 中的代码
<section id="gallery">
<div class="container">
<h3>Images Gallery</h3>
<div class="row">
<div class="list-group galleryy">
@if($images->count())
@foreach($images as $image)
<div class='col-sm-4 col-xs-6 col-md-3 col-lg-3'>
<a class="thumbnail fancybox" rel="ligthbox" href="/images/{{ $image->image }}">
<img class="img-responsive" alt="" src="/images/{{ $image->image }}" />
<div class='text-center'>
<small class='text-muted'>{{ $image->title }}</small>
</div> <!-- text-center / end -->
</a>
</div>
@endforeach
@endif
</div>
</div>
</div>
working bootstrap工作引导
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
not working on不工作
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
If you use bootstarp 4, then the code structure should be like this:如果你使用bootstarp 4,那么代码结构应该是这样的:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> <section id="gallery"> <div class="container"> <h3>Images Gallery</h3> <div class="row"> @if($images->count()) @foreach($images as $image) <div class='col-sm-4 col-xs-6 col-md-3 col-lg-3'> <div class="list-group galleryy"> <a class="thumbnail fancybox" rel="ligthbox" href="/images/{{ $image->image }}"> <img class="img-fluid" alt="" src="/images/{{ $image->image }}" /> <div class='text-center'> <small class='text-muted'>{{ $image->title }}</small> </div> <!-- text-center / end --> </a> </div> </div> @endforeach @endif </div> </div> </div>
for more information about 'list-group'.有关“列表组”的更多信息。 please check the following link below:
请检查以下链接:
https://getbootstrap.com/docs/4.6/components/list-group/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.