be-fe / iSlider

Smooth mobile touch slider for Mobile WebApp, HTML5 App, Hybrid App
http://be-fe.github.io/iSlider/
MIT License
1.66k stars 448 forks source link

2.X Problems (问题汇总) #264

Open shinate opened 8 years ago

shinate commented 8 years ago

Question List

shinate commented 8 years ago

255

lococo--0 commented 8 years ago

dot plugin加入不了诶

var slider = new iSlider({
  dom: document.getElementById('iSlider-wrapper'),
  data: data,
  plugins: ['dot'],
});

dot plugin里面的回调完全没有被调用

xieyu33333 commented 8 years ago

@lococo--0 相关资源是否加入页面?

lococo--0 commented 8 years ago

@xieyu33333 那个dot-wrap放在iSlider-wrapper的parentNode里面了,不是应该放在iSlider-wrapper里面么?

lococo--0 commented 8 years ago
this.fixPage = opts.fixPage || true;

这个直接把fixPage设为true了 ··

lococo--0 commented 8 years ago

能不能在dot-wrap里面加个默认的背景样式呀 ·· 不然白点在白色的图片上面没有凸显 ··

xieyu33333 commented 8 years ago

this.fixPage = opts.fixPage || true; 应该是代码合并的时候出问题了

shinate commented 8 years ago

@lococo--0 2.0.1加入配置,dot可以设置加入的位置 relative=在iSlider wrap内,其他保持默认,和现在一样,还可以写成dom选择器,append到特定的容器里。

lococo--0 commented 8 years ago

@shinate 棒! 所以现在应该是

plugins: [['dot', {locate: 'relative'}]]

这样咩?

shinate commented 8 years ago

@lococo--0 是的

lococo--0 commented 8 years ago

有时候滑动会导致出现两个active dot,没有办法每次复现,但是多滑几次出现频率就很高。

shinate commented 8 years ago

@lococo--0 需要看下你的例子

siweikoudai commented 8 years ago

islider在移动端做带标题的焦点图,li的高度有了,但是ul没有高度?

shinate commented 8 years ago

@siweikoudai UL并没有设置高度,仅仅作为容器存在,如果需要可以单独写css

siweikoudai commented 8 years ago

@shinate 因为要响应式 所以暂且写一个media query来解决好了