Open shinate opened 8 years ago
dot plugin加入不了诶
var slider = new iSlider({
dom: document.getElementById('iSlider-wrapper'),
data: data,
plugins: ['dot'],
});
dot plugin里面的回调完全没有被调用
@lococo--0 相关资源是否加入页面?
@xieyu33333 那个dot-wrap放在iSlider-wrapper的parentNode里面了,不是应该放在iSlider-wrapper里面么?
this.fixPage = opts.fixPage || true;
这个直接把fixPage设为true了 ··
能不能在dot-wrap里面加个默认的背景样式呀 ·· 不然白点在白色的图片上面没有凸显 ··
this.fixPage = opts.fixPage || true;
应该是代码合并的时候出问题了
@lococo--0 2.0.1加入配置,dot可以设置加入的位置 relative=在iSlider wrap内,其他保持默认,和现在一样,还可以写成dom选择器,append到特定的容器里。
@shinate 棒! 所以现在应该是
plugins: [['dot', {locate: 'relative'}]]
这样咩?
@lococo--0 是的
有时候滑动会导致出现两个active dot,没有办法每次复现,但是多滑几次出现频率就很高。
@lococo--0 需要看下你的例子
islider在移动端做带标题的焦点图,li的高度有了,但是ul没有高度?
@siweikoudai UL并没有设置高度,仅仅作为容器存在,如果需要可以单独写css
@shinate 因为要响应式 所以暂且写一个media query来解决好了
Question List