gpt4 book ai didi

css - 在超大屏幕中并排放置三张背景照片

转载 作者:太空宇宙 更新时间:2023-11-04 10:08:01 25 4
gpt4 key购买 nike

我有以下代码用于将三张背景照片并排放置。我不确定为什么超大屏幕上没有显示任何内容。您能否提示我找出可能的原因是什么?

<div class="jumbotron jumbotron-fluid" style=" margin-top: 90px; ">
<div class="container text-sm-center p-y-3">

<div class="col-lg-3 col-md-3 col-sm-3" style=" background: url('./assets/img/glass.jpg'); background-repeat: no-repeat; background-size:contain ">

</div>


<div class="col-lg-6 col-md-6 col-sm-6" style="background: url('./assets/img/mhacks.jpg'); background-repeat: no-repeat; background-size:contain ">

</div>


<div class="col-lg-3 col-md-3 col-sm-3" style="background: url('./assets/img/rift.jpg'); background-repeat: no-repeat; background-size:contain ">

</div>

</div>
</div>

最佳答案

因为你的div里面没有任何内容,如果你只想要div里面的图片,你可以这样做:

<div class="jumbotron jumbotron-fluid" style=" margin-top: 90px; ">
<div class="container text-sm-center p-y-3">

<div class="col-lg-3 col-md-3 col-sm-3">
<img src="./assets/img/glass.jpg" class="img-responsive" style="width:100%; height:auto"/>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<img src="./assets/img/mhacks.jpg" class="img-responsive" style="width:100%; height:auto"/>
</div>
<div class="col-lg-3 col-md-3 col-sm-3">
<img src="./assets/img/rift.jpg" class="img-responsive" style="width:100%; height:auto"/>
</div>

</div>
</div>

关于css - 在超大屏幕中并排放置三张背景照片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37833277/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com