【问题标题】:Html/Css Jssor Slider not working in chrome only but no errorsHtml/Css Jssor Slider 仅在 chrome 中不起作用,但没有错误
【发布时间】:2015-10-08 06:48:51
【问题描述】:

我目前在让 Jssor Slider 在 chrome 中工作时遇到问题。 它曾经工作到某个更新。 我不知道具体是什么更新。

它确实可以在 IE 上正常工作,并且在 chrome 中它可以加载并具有功能,但没有显示图像。我在控制台中找不到任何错误。

网址:http://www.taalinblokjes.nl/alle-materialen/?productId=4#c10

有谁知道是什么原因导致它不再显示图像?

【问题讨论】:

    标签: javascript html css wordpress


    【解决方案1】:

    在此处将 JSSOR 更新到最新版本: http://www.jssor.com/download-jssor-slider-development-kit.html

    然后在选项中添加:$HWA:false

    例子:

      <script>
            jQuery(document).ready(function ($) {
                var options = {
                    $DragOrientation: 3,  
                    $FillMode: 1,                               //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
                    $ArrowNavigatorOptions: {                       //[Optional] Options to specify and enable arrow navigator or not
                        $Class: $JssorArrowNavigator$,              //[Requried] Class to create arrow navigator instance
                        $ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
                        $AutoCenter: 0,                                 //[Optional] Auto center arrows in parent container, 0 No, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
                        $Steps: 1,                                      //[Optional] Steps to go for each navigation request, default value is 1
                        $HWA:false                                       
                    }
                };
    
                //var sliders = new Object();
    
                $('.jssorSliderItem').each(function() {
                    var id = this.id;
                    var jssor_slider1 = new $JssorSlider$(id, options);
                   // sliders[id] = jssor_slider1;    
                });
    
            });
        </script>
    

    【讨论】:

      猜你喜欢
      • 2015-12-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-31
      • 1970-01-01
      • 1970-01-01
      • 2016-11-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多