[英]CSS - Parallax Image not working
我在這里有整個部分:
<section id="design-centre">
<section id="design-centre-cover">
<div class="container">
<div class="row">
<div class="cover-left">
<h1>Our Designs Make Luxury More Affordable</h1>
</div>
</div>
</div>
</section>
</section>
這是CSS:
section#design-centre {
position: relative;
}
background: url(../images/design-center-cover.jpg) center top no-repeat;
height: 800px;
background-attachment: fixed;
}
我正在嘗試做以下事情:
當用戶滾動時使圖像滾動,這是我要查找的示例:
http://www.hush.ca/hush-design-main/#hush-design
我嘗試使用background-attachment: fixed;
但這根本沒有用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.