我有一个问题,我不知道下一步该做什么。我有一个在 HTML 页面中使用 JQuery Galleeria 的网站,并在页面顶部自动播放 10 张图片。它使用经典主题,是非常基本的功能。
我在我的本地 IIS 服务器和 IE7、Chrome、Opera、Firefox 的内部构建服务器上对其进行了测试,它运行良好。我将它发布在实时服务器上,它在 IE7 中间歇性中断。它做了一些奇怪的事情:
即使我在我的 JS 中添加了“max_scale_ratio: 1”,它也会使图片比原图更大。
它在我的缩略图旁边添加了任何其他浏览器都没有的前进和后退箭头。
它在第一张图片后停止显示缩略图。
所有这些都是间歇性的,如果我多次刷新页面,它可以自行更正,或者有时会出现上述情况。
我在页面上的JS代码如下:
<script type="text/javascript">
$(document).ready(function() {
// Load theme
Galleria.loadTheme('themes/classic/galleria.classic.js');
// run galleria and add some options
$('#galleria').galleria({
debug: true,
image_crop: true,
height: 397,
max_scale_ratio: 1, //Ensures the picture crop doesn't zoom the picture
autoplay: 8000, //Sets an autoplay interval of 8 seconds (8000)
transition: 'fade',
data_config: function(img) {
return {
description: $(img).next('p').html()
};
}
});
我不知道为什么它只是在实时服务器上中断并在其他服务器上工作。我找不到任何显示相同问题的帮助来源。是服务器问题还是我可以在代码中修复的问题?