2016-08-23 3 views
1

위치가 크롬에서 작업하지만 난 내 디자인에 부트 스트랩을 사용하고 이 문제를 해결하는 방법 파이어 폭스에서 작동하지 고정 파이어 폭스 작업 크롬에서 작동하지 않는 고정CSS의 위치가

이 HTML 코드를 수정해야합니다
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> 
     <div class="container-fluid"> 
      <!-- Brand and toggle get grouped for better mobile display --> 
      <div class="navbar-header"> 
       <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> 
        <span class="sr-only">Toggle navigation</span> 
        <span class="icon-bar"></span> 
        <span class="icon-bar"></span> 
        <span class="icon-bar"></span> 
       </button> 

      </div> 
      <!-- Collect the nav links, forms, and other content for toggling --> 
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> 
       <ul class="nav navbar-nav"> 
        <li> 
         <a href="index.html">Home</a> 
        </li> 
        <li> 
         <a href="aboutus.html">About Us</a> 
        </li> 
         <li> 
         <a href="services.html">Services</a> 
        </li> 
         <li> 
         <a href="factory.html">Factory</a> 
        </li> 
         <li> 
         <a href="projects.html">Projects</a> 
        </li> 
         <li> 
         <a href="client.html">Clients</a> 
        </li> 
         <li> 
         <a href="video.html">Video</a> 
        </li> 
        <li> 
         <a href="contactus.html">Contact Us</a> 
        </li> 
       </ul> 
      </div> 
      <!-- /.navbar-collapse --> 
     </div> 
     <!-- /.container --> 
    </nav> 
    <div class="row"> 
    <img src="img/logo%20corner.png" class="center-block img-responsive aboutlogo"> 
    </div> 



    <!-- Full Page Image Background Carousel Header --> 
    <header id="myCarousel" class="carousel slide"> 
     <!-- Indicators --> 


     <!-- Wrapper for Slides --> 
     <div class="carousel-inner"> 
      <div class="item active"> 
       <!-- Set the first background image using inline CSS below. --> 
       <div class="fill fills" style="background-image:url('img//intro%203.jpg');"></div> 
       <div class="carousel-caption"> 
        <h1>P-DECO</h1> 
       <p>YOUR PARTNER TO THE TOP </p> 
       </div> 
      </div> 
     </div> 
    </header> 

및 나는 그것을 할 수 있지만, 크롬이나 오페라 브라우저에서 작동하지 않습니다하지만 완벽한 화재 여우에 작업의

CSS 코드 :

.carousel, 
.item, 
.active { 
    height: 65%; 
} 
.carousel-inner { 
    height: 100%; 
} 
/* Background images are set within the HTML using inline CSS, not here */ 
.fill { 
    width: 100%; 
    height:300px; 
    background-position:center ; 
    -webkit-background-size: contain; 
    -moz-background-size: contain; 
    background-size: contain; 
    -o-background-size:contain; 
    background-repeat: no-repeat; background-size: 100% 100%;background-origin: content-box; 
    z-index: 1030; 
    position: fixed; 
} 

클릭 here

<!-- Page Content --> 
    <div class="container-fluid">  
     <div class="row vcenter"> 
      <div class="col-lg-3 col-md-3 col-sm-3"></div> 
      <div class="col-lg-6 col-md-6 col-sm-6 "> 
       <h1>ABOUT US</h1> 
       <p>P-DECO is a fully integrated design and Wood manufacturing firm that has developed over the years into a regional powerhouse mastering all facets of interior decorations in Wood and Steel With ISO certification . Our team is ready to assist from the initial conceptual design to the turnkey handover, bringing high quality services and delivering the highest standards.</p> 
      </div> 
      <div class="col-lg-3 col-md-3 col-sm-3 "><img src="img/iso.jpg" class="center-block" id="isologo"></div> 
     </div> 

     <hr> 
<div class="row"> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/558967750_442.jpg" class="center-block"></div> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/modern-staircase-oak-wood-interior-design-ideas-home-decoration.jpg" class="center-block"></div> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/slide3.jpg" class="center-block"></div>  
</div> 
     <hr> 

     <div class="row"> 
     <div class="col-md-4 col-sm-4 col-lg-4"></div> 
      <div class="col-md-4 col-sm-4 col-lg-4"><h1>WHO WE ARE </h1></div> 
      <div class="col-md-4 col-sm-4 col-lg-4"></div> 
     </div> 

<div class="row"> 
      <div class="col-lg-3 col-md-3 col-sm-3"></div> 
      <div class="col-lg-6 col-md-6 col-sm-6"> 
       <p>WHO WE ARE 
P-DECO we believe that quality is the basis for success. Providing superior quality of products and timely services based on agreed budgets has made P-DECO a regional leader by adding great value to all projects, leaving our clients with a great level of satisfaction. Through training, synergy and motivation, our highly qualified team is fully dedicated to every assignment, allowing P-DECO to be amongst the best firms in the market. Having an esteemed reputation in the market is what we aim for, and thus with a little faith and confidence in our highly experienced team of engineers the job will be done.</p> 
      </div> 
      <div class="col-lg-3 col-md-3 col-sm-3"></div> 
     </div> 
     <hr> 

     <div class="row"> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/MR.KL%20Faqra-wood%20work%204566333.jpg" class="center-block" ></div> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/blue%20chair.jpg" class="center-block" ></div> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/Table%20support.jpg" class="center-block" ></div>  
</div> 
     <hr> 
     <div class="row"> 
     <div class="col-md-4 col-sm-4 col-lg-4"></div> 
      <div class="col-md-4 col-sm-4 col-lg-4"><h1>OUR VISION</h1></div> 
      <div class="col-md-4 col-sm-4 col-lg-4"></div> 
     </div> 
     <div class="row"> 
      <div class="col-lg-3 col-md-3 col-sm-3"></div> 
      <div class="col-lg-6 col-md-6 col-sm-6"> 
       <p>P-DECO is not about projects, it’s about People. We have an excellent team who share a passion for everything they do: from creative designers to expert project managers, production managers to quantity surveyors, supply chain leaders to health and safety specialists. Our talented people make the difference and systematically exceed expectations. We are proud to be recognized as Investors in People because our people invest so much of themselves in our clients and us. Our people love what they do and the way we do it. We believe our People set us apart giving us the edge to drive our business forward. And they can do the same for you and your business.</p> 
      </div> 
      <div class="col-lg-3 col-md-3 col-sm-3"></div> 
     </div> 
       <div class="row"> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/pic1.jpg" class="center-block" ></div> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/machine%202.jpg" class="center-block" ></div> 
<div class="col-md-4 col-sm-4 col-lg-4"><img src="img/machine%201.jpg" class="center-block"></div>  
</div> 
     <hr> 
+0

아래에 추가합니다. – frnt

+0

샌프란은 5 분에서부터 대답을 바꾸었지만 대답은 있지만 여전히 문제가 있습니다. 콘텐츠에 몇 가지 정보가 숨겨져 있습니다. – mhmd

+0

찾은 해결책을 공유합니다. 이 대답을보세요 [여기] (https://stackoverflow.com/questions/44679794/position-fixed-on-chrome-mobile-causing-element-to-move-on-scroll-up-down/#44680066)) 그리고 "user-scalable = no"에 대한 전체 설명은 [여기]에서 찾을 수 있습니다 (https://stackoverflow.com/questions/6397748/whats-the-point-of-meta-viewport-user-scalable-no- in-the-google-maps-api) – Alex

답변

0

코드 아래로 헤더 사업부를 교체하고 확인 크롬 및 파이어 폭스

콘텐츠 코드에 나타납니다 어떻게 웹 사이트를 볼 수 있습니다. 작동하는 경우 인라인 스타일을 제거하고 클래스에 배치 할 수 있습니다.

<header style="position: relative;"><div id="myCarousel" class="carousel slide" style=" 
"> 
     <!-- Indicators --> 


     <!-- Wrapper for Slides --> 
     <div class="carousel-inner"> 
      <div class="item active"> 
       <!-- Set the first background image using inline CSS below. --> 
       <div class="fill fills" style="background-image:url('img//intro%203.jpg');"></div> 
       <div class="carousel-caption"> 
        <h1>P-DECO</h1> 
       <p>YOUR PARTNER TO THE TOP </p> 
       </div> 
      </div> 
     </div> 
    </div></header> 

는 헤더 두 브라우저에서 동일하게 작동합니다 나는 어떤 차이를 찾을 수 없습니다 CSS

.carousel { 
    position: fixed; 
    width: 100%; 
    z-index: 999; 
} 
+0

아니요. 코드를 넣으면 이미지 헤더가 크롬에서 사라지는 사이트 위에 링크를 올려 놓을 수 없습니다. – mhmd

+0

코드는 작동하지만이 코드는 아래 정보를 숨 깁니다. 위 내용의 코드를 확인하실 수 있습니다 – mhmd

+0

숨겨진 정보에 대해 Z- 색인 또는 최상위 위치를 사용해보십시오. – San