div와 약간의 문제가 있습니다. 내 웹 사이트에는 height: 100%;
크기의 래퍼가 하나 있습니다.이 래퍼에는 헤더, 슬라이더 및 콘텐츠 div와 같은 다양한 div가 포함되어 있습니다. 유일한 문제는 안좋은 이유 때문에 contentt div가 래퍼 div에서 푸시당하는 것입니다.Div는 래퍼에 들어 가지 않습니까?
나를 도울 수있는 사람은 누구입니까?
html {
overflow-y: scroll;
height: 100%;
position: relative;
}
a {
outline: none;
}
img {
width: 100%;
border: none;
-moz-border-radius: 20px;
border-radius: 20px;
}
body {
width: 100%;
height: 100%;
background-color: yellow;
margin: 0px 0px 0px 0px;
}
.wrapper {
width: 87%;
height: 100%;
background-color: red;
margin: 0 auto;
}
.header {
width: 100%;
height: 150px;
background-color: green;
float: left;
overflow: hidden;
}
.logo {
width: 7%;
height: 114px;
margin: 18px 0% 18px 3%;
float: left;
background-image: url("..//img/logo.png");
background-size: 100%;
background-repeat: no-repeat;
}
.slogan {
width: 30%;
height: 100px;
background: orange;
margin: 25px 13% 25px 13%;
float: left;
}
.nav {
width: 31%;
height: 150px;
background-color: purple;
float: left;
margin: 0% 3% 0% 0%;
}
.search {
width: 100%;
height: 50%;
background: blue;
float: left;
}
.menu {
width: 100%;
height: 50%;
float: left;
background: grey;
}
.slider-container {
width: 100%;
height: 100%;
background-color: white;
}
.main-content {
width: 100%;
height: 100px;
background-color: pink;
float: left;
}
.column {
width: 31%;
height: auto;
background-color: orange;
float: left
}
/* SLIDER */
.caption {
width: 500px;
background-image: url("..//img/caption-bg.png");
background-size: 100%;
position: absolute;
z-index: 99;
overflow: hidden;
margin-top: 7%;
margin-left: 5%;
-moz-border-radius: 20px;
border-radius: 20px;
}
.caption-text {
max-width: 460px;
overflow: hidden;
margin: 20px;
}
.wrapper .slider-container #slideshow {
float: left;
position: relative;
width: 100%;
}
.wrapper .slider-container #slideshow > div {
position: absolute;
}
당신은 누군가가 나를 도울 수 http://k2stuc.nl/test/
희망에서 라이브 데모를 볼 수 있습니다!
감사합니다.
슬라이더 div의 높이를 변경할 수 있습니까? 그래도 여전히 동적입니다. –
찾고있는 내용을 이해하지 못합니다. 슬라이더 컨테이너를 내용에 맞게 조정하려면 슬라이더의 슬라이드가 'position : absolute'에 있기 때문에 고정 된 높이가 필요합니다. –