페이지를 스크롤하는 중에 오류가 발생하면 본문 내용이 네비게이션 막대와 겹칩니다.본문 내용이 스크롤 할 때 네비게이션 바가 겹치다
- 스크롤 할 때 사라져야하는 콘텐츠가 navbar 위에 있습니다. 정상적으로 작동합니다.
- 스크롤하는 navbar가 수정되어야하지만 정상적으로 작동합니다.
- 스크롤하는 동안 신체 내용이 네비게이션 바 위로 미끄러 져가는 문제가 있습니다. 그것은 navbar 뒤에서 가야합니다. 네비게이션 바의
<div class="container-fluid" style="background-color:#F44336;color:#fff;height:200px;"> <div class="row"> <div class="col-sm-4" style="background-color:yellow; width:200px"> <img class="img-responsive img-rounded pull-left" src="img/logo 1.png" alt="Chania" width="200" height="200"> </div> <div class="col-sm-4" style="background-color:pink;"> <h3>Fixed (sticky) navbar on scroll</h3> <p>Scroll this page to see how the navbar behaves with data-spy="affix".</p> <p>The navbar is attached to the top of the page after you have scrolled a specified amount of pixels.</p> </div> <div class="col-sm-4 text-right" style="background-color:yellow;width:200px;"> <img class="img-responsive img-rounded pull-right" src="img/logo 2.png" alt="Chania" width="200" height="200"> </div> </div> </div> <nav class="navbar navbar-inverse" data-spy="affix" data-offset-top="197"> <!-- Brand and toggle get grouped for better mobile display --> <div class="container-fluid"> <div class="navbar-header"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Menu</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> menu name.. </ul> <form class="navbar-form navbar-right" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button> </form> </div> </div> </nav>
CSS 코드 : 슬라이더
에 대한.affix { top: 0; width: 100%; } .affix + .container-fluid { padding-top: 70px; }
CSS 코드
- 나는 네비게이션 바 아래 이미지 슬라이더 여기
는 HTML 파일의 코드가
html, body {
height: 100%;}
.carousel, .item {
height: 70%; }
.carousel-inner {
height: 143%; }
.fill {
width: 100%;
height: 100%;
background-position: center;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover; }
저는 초보자입니다. 감사합니다. .
fiddle https://jsfiddle.net/을 만들 수 있습니까? – Afsar
여기있다 : https://jsfiddle.net/DTcHh/29975/ –