0
如何讓圖像覆蓋整個屏幕?如何讓視差滾動消耗屏幕的全部寬度和高度?
CSS:
.parallaxBg {
background-image: url("image_test.jpg");
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
HTML:
<div class="parallaxBg">
</div>
我製作了一個視差介紹和paralax botom div,然後將內容嵌套在...涵蓋整個頁面......這個css與你很相似 – weinde
_「我怎樣才能讓圖像覆蓋整個屏幕?「 - 通過獲取包含此背景圖像的元素來覆蓋整個屏幕......並且可能不是這樣一個獨特的新問題,它無法被研究... – CBroe
謝謝你們,它工作:) – user7943