gpt4 book ai didi

响应移动设备时不显示 css 文本

转载 作者:行者123 更新时间:2023-11-28 03:22:54 24 4
gpt4 key购买 nike

第一张图片用于桌面 View 。没问题,但是当我在浏览器中观看移动 View 时。 h1 正在上升并且没有显示在屏幕上。

//第二张图片用于移动 View 。我希望已经在这里解释了问题。

html代码

<div class="container" id="slide">

<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="img/bg3.jpg" alt="Los Angeles" style="width:100%; max-height: 900px;">

<div class="carousel-caption">
<img src="img/logo1.png" width="50px;" height="50px;">

<h1 style="font-size: 75px; font-weight: bold; color: #fc4128; text-shadow: 2px 2px #00a0c6; padding-bottom: auto; ">Bluebay Systems Ltd</h1>


<h3 style="color:white; font-weight: bold;padding-bottom: 50px;">Complete IT Solution For Your Every Need</h3>
<br>
<br>
<a href="#about" class="btn btn-dark btn-lg">Find Out More</a>
</div>
</div>

<div class="item" style=" max-height: 900px;">
<img src="img/bg1.jpg" alt="Chicago" style="width:100%; max-height: 900px;">
<div class="carousel-caption">
<img src="img/logo1.png" width="50px;" height="50px;">

<h1 style="font-size: 75px; font-weight: bold; color: #fc4128; text-shadow: 2px 2px #00a0c6; padding-bottom:auto; ">Bluebay Systems Ltd</h1>

<h3 style="color: white; font-weight: bold;padding-bottom: 50px;" >Complete IT Solution For Your Every Need</h3>
<br>
<a href="#about" class="btn btn-dark btn-lg">Find Out More</a>
</div>
</div>

<div class="item">
<img src="img/bg.jpg" alt="New york" style="width:100%; max-height: 900px;">
<div class="carousel-caption">
<img src="img/logo1.png" width="50px;" height="50px;">

<h1 style="font-size: 75px; font-weight: bold; color: #fc4128; text-shadow: 2px 2px #00a0c6; padding-bottom: auto; ">Bluebay Systems Ltd</h1>

<h3 style="color: white; font-weight: bold; padding-bottom: 50px;padding-top: 10px;" >Complete IT Solution For Your Every Need</h3>
<br>
<a href="#about" class="btn btn-dark btn-lg">Find Out More</a>
</div>
</div>
</div>

<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>

CSS 代码

#slide{

width: 100%;

padding-left: 0px;
padding-right: 0px;
}

this is  for full screen

this is mobile view

最佳答案

请检查 Bootstrap css 并找到以下内容。

@media screen and (max-width: 767px) {

/* Hide captions class */
.carousel-caption {
display: none
}
}

关于响应移动设备时不显示 css 文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45127812/

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