不知何故,即使是最简单的ground impress.js幻灯片也不适用于我:( http://dl.dropbox.com/u/655237/events/GTG.zip…,总是要用到你的例子。
<html lang="en">
<head>
<title>Impress Demo</title>
</head>
<body>
<div id="impress">
<div id="start">
<p style='width:1000px;font-size:80px;
text-align:center'>Creating Stunning Visualizations</p>
<p>Impress.js </p>
</div>
<div id="slide2" data-x="-1200" data-y="0">
<p style='width:1000px;font-size:80px;'>
First Slide Moves From Left To Right</p>
<p>Impress.js </p>
</div>
</div>
<script type="text/javascript">impress().init();</script>
<script type="text/javascript" src="js/impress.js"></script>
</body>
</html>我把impress.js文件放在js directory.Still下,最新的浏览器都没有显示幻灯片。我使用的是firefox 16。

发布于 2012-10-31 13:33:55
在加载库之前调用impress,请尝试更改脚本标记的顺序:
<script type="text/javascript" src="js/impress.js"></script>
<script type="text/javascript">impress().init();</script>有关这方面的更多信息,请参阅this question。
此外,按照impress examples,在最简单的情况下,表示的每个步骤都应该是#impress元素中的一个元素,其类名为step。
https://stackoverflow.com/questions/13151719
复制相似问题