2016-08-10 17 views
1

を働いていませんが、ただ、私は一つの問題のCss - 背景-IMG URLノー・リピートセンターセンターは、私は私のウェブサイトでは、ブートストラップ使用

-html

<div class="first-background"> 
     ----- skip 
</div> 

<div class="second-background"> 
     ----- skip 
</div> 

-css

.first-background{ 
    padding-top: 100px; 
    width: 100%; 
    background-color: #E8ECEE;  
} 

.second-background{ 
    background-image: url(../img/background.png); 

    -- first ways 
    background-repeat:no-repeat; 
    background-size: cover; 

    -- second ways 
    background-repeat: no-repeat; 
    background-position: center center; 

    -- third ways 
    background-image: url(../img/background.png) no-repeat center center fixed; 
    -webkit-background-size: cover; 
    -moz-background-size: cover; 
    background-size: cover; 
    -o-background-size: cover; 

を取得します}

私はとにかくカバーやセンターを試しましたウェブサイトでは動作していません

この問題を解決するにはどうすればよいですか?今私は解決策がありません。

答えて

0

2番目のdivの構文が間違っています。具体的には、あなたは間違って 'クラス'を綴りました。通常、スタックオーバーフローはこれらのタイプの問題には親切に対応しません。したがって、投稿するコードが疑問のほぼ完全なコード(生データを除く)であることを確認してください。

関連する問題