我想在网站上使用此菜单移动设备. http://tympanus.net/codrops/2013/08/13/multi-level-push-menu/comment-page-8/#comment-466199
我有它工作,但一个ie11用户报告错误,我在控制台Uncaught TypeError中看到以下错误:无法读取属性'querySelectorAll'的nullmlPushMenu._init @ mlpushmenu.js:89mlPushMenu @ mlpushmenu.js:67(匿名函数) @(指数):1062
这是有问题的js文件的片段
function mlPushMenu( el, trigger, options ) {
this.el = el;
this.trigger = trigger;
this.options = extend( this.defaults, options );
// support 3d transforms
this.support = Modernizr.csstransforms3d;
if( this.support ) {
this._init();
}
}
mlPushMenu.prototype = {
defaults : {
// overlap: there will be a gap between open levels
// cover: the open levels will be on top of any previous open level
type : 'overlap', // overlap || cover …Run Code Online (Sandbox Code Playgroud)