Closed yxxcrtd closed 5 years ago
不知道我的方法有什么可以改进的? 我在html中添加了:
<section class="panel panel1" data-section-name="second"> <div class="inner"><div class="vertical-center">2</div></div> </section> <section class="panel panel2" data-section-name="third"> <div class="inner"><div class="vertical-center">3</div></div> </section> <section class="panel panel3" data-section-name="fourth"> <div class="inner"><div class="vertical-center">4</div></div> </section>
css file like below: div#home_img { background: url("../bg.png") no-repeat center; }
add a line into jQuery.Scrollify.js $this.find("#home_img").css({"height": portHeight});
<div class="inner"><div class="vertical-center"><div id="home_img"></div></div></div>
Please post your question on stackoverflow.com.
不知道我的方法有什么可以改进的? 我在html中添加了:
css file like below: div#home_img { background: url("../bg.png") no-repeat center; }
add a line into jQuery.Scrollify.js $this.find("#home_img").css({"height": portHeight});