2016-04-29 17 views
1

私のウェブサイトに問題があります。私は反応的な使用のためにブートストラップを使いました。そして、私はnavbarを持っていて、私は背景が透明に見えるようにしたいと思います。私はその持っている瞬間のために Boostrap navbar-default transparent

thatは 私の背景は、すべての高さ

をとらないと私は

Like thatをしたい、あなたのアイデアを持っていますか?

HTML:

<header> 
     <div class="header-content"> 
     <div class="header-content-inner"> 
      <h1>Lorem ipsum</h1> 
     </div> 
     </div> 
    </header> 
</body> 

とCSS:

html, body 
{ 
    height: 100%; 
    width: 100%; 
} 

.navbar 
{ 
    height: 70px; 
} 
.navbar-default 
{ 
    background-color: transparent; 
    border-color: rgba(255,255,255,.3); 
    border-radius: 0; 
} 

header { 
    position: relative; 
    width: 100%; 
    min-height: 100%; 
    text-align: center; 
    color: #fff; 
    background-image: url(../img/bg.jpg); 
    background-position: center; 
    -webkit-background-size: cover; 
    -moz-background-size: cover; 
    background-size: cover; 
    -o-background-size: cover; 
} 

header .header-content { 
    position: relative; 
    width: 100%; 
    padding: 100px 15px; 
    text-align: center; 
} 

私の英語のため申し訳ありません。

+0

**あなたのHTMLは** CSSと一致していません。コードヘルプを求める質問には、質問自体に** ** [** Stack Snippet **](https://blog.stackoverflow.com/2014/09/introducing-runnable)で**それを再現するのに必要な最短コードを含める必要があります** -javascript-css-and-html-code-snippets /)。 [**最小限で完全で検証可能なサンプルを作成する方法**](http://stackoverflow.com/help/mcve) –

+0

私は自分のsujectを編集します – simonmnt

答えて