2015-06-12 68 views
0

我想要在頂部欄重複圖案,我想讓它響應,所以大小在多個窗口大小保持不變。 我在鏈接中添加了所有代碼。 http://www.codecademy.com/harmjanfl/codebits/ny7bes 我想我可能需要添加一些JavaScript,但我很新:D。 如果您有任何需要了解我的信息,請詢問。 非常感謝!響應背景問題

+0

您的網頁中使用背景圖片2 CSS類:菜單和範博文。這是什麼問題? – Roberto

回答

0

您需要從.boven元素中移除「background-size:cover」以使背景保持其大小。

更改此:

.boven { 
    background: #202024 url('http://s3.amazonaws.com/codecademy-content/courses/ltp2/img/uber/black-thread.png'); 
    background-repeat: repeat; 
    width: 
    -webkit-background-size: cover; 
     -moz-background-size: cover; 
     -o-background-size: cover; 
      background-size: cover; 
} 

到:

.boven { 
    background: #202024 url('http://s3.amazonaws.com/codecademy- content/courses/ltp2/img/uber/black-thread.png'); 
    background-repeat: repeat; 
} 
+0

感謝您的反饋,我想讓頂欄與菜單欄有相同的外觀。現在它只是一種純色。 –