问题描述
我有一个带有jssor滑块的car.asp页面,该页面包含在index.asp中
因此,当我直接加载car.asp页面时,箭头位置正确
但是当我将此页面car.asp加载到另一个div的index.asp中时,箭头位置错误
如何解决这个问题?
可能是因为3337行上的jssor.slider.js语法错误为self.$Relocate = function (conainerWidth, containerHeight) { conainerWidth而不是containerWidth吗?
1楼
2
已采纳
在$ArrowNavigatorOptions: {}变化$AutoCenter:以0
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$,
$AutoCenter: 0
}
然后,您可以在元素中使用css style="top: 20px"控制箭头
<span u="arrowleft" class="jssora" style="top: 20px; left: 8px;"></span>
<span u="arrowright" class="jssora" style="top: 20px; right: 8px;"></span>