展开全部
在页面中加一个div作为“书”的容器:
<div id='mybook'></div>
在容器中加入“页”,booklet会自动识别<div id='mybook'>的子元素为页
<div id="mybook">
<div>
<h3>Yay, Page 1!</h3>
</div>
<div>
<h3>Yay, Page 2!</h3>
</div>
<div>
<h3>Yay, Page 3!</h3>
</div>
<div>
<h3>Yay, Page 4!</h3>
</div>
</div>
初始化booklet:
$('#mybook').booklet({
width: 600,
height: 200,
speed: 250,
startingPage: 1,
pageNumbers: true
});
<div id='mybook'></div>
在容器中加入“页”,booklet会自动识别<div id='mybook'>的子元素为页
<div id="mybook">
<div>
<h3>Yay, Page 1!</h3>
</div>
<div>
<h3>Yay, Page 2!</h3>
</div>
<div>
<h3>Yay, Page 3!</h3>
</div>
<div>
<h3>Yay, Page 4!</h3>
</div>
</div>
初始化booklet:
$('#mybook').booklet({
width: 600,
height: 200,
speed: 250,
startingPage: 1,
pageNumbers: true
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询