在我的 WordPress 主题中,我有 Rhinoslider jquery slider 。 Rhinoslider 工作正常,但是这个 slider 没有响应。这里有人知道如何修改 css 或 js 以使我的 slider 响应吗? 该 slider 是根据 MIT 和 GPL2 许可证发布的。 Rhinoslider API链接:http://rhinoslider.com/api/create-your-own-effects/
最佳答案
哈。我前天也遇到了同样的问题。我在每个断点处重新加载网站。 ;P
我的代码:
function responsivecheck(size){
var compare = $("#wrap").width();
if(size != compare){
reload();
} else {
setTimeout(
function(){responsivecheck(compare)},
5000
);
}
} // ! executed after rhinoslider initialization !
function reload() {
window.location.href = window.location.href;
}
二手in here .
关于jquery - 如何使 rhonoslider 响应式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14039608/