【发布时间】:2019-01-09 15:31:35
【问题描述】:
我的问题就像标题所说的那样,我有一个渐变背景,但它并没有覆盖整个页面,正如您在此处看到的那样,您会注意到在我的导航栏下方有一个稍微不同的颜色,我想要也修复
Result from using height:100vh
这是我的css代码
.App {
text-align: center;
color: black;
background: #bdc3c7; /* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #2c3e50, #bdc3c7); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #2c3e50, #bdc3c7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.CarouselIndex{
margin-left: 10%;
margin-right: 10%;
}
.navbar-brand {
display: flex;
align-items: center;
}
.navbar-brand>img {
padding: 7px 14px;
}
.LogoHeader{
color: white;
}
.Footer{
background-color: black;
position:relative;
width: 100%;
height: 80px;
color:white;
border-color: black;
margin-bottom: auto;
text-align: center;
left: 0;
bottom: 0;
}
.aboutimg{
display: block;
margin-left: auto;
margin-right: auto;
}
.textarea{
resize: vertical;
}
【问题讨论】:
-
通常身体会有一个最小高度。您需要为问题的两个部分添加更多信息。特别是使用的 HTML。
标签: javascript html css reactjs