YUI3 selector problem in ie8

别等时光非礼了梦想. 提交于 2020-01-13 17:59:29

问题


Y.one('form fieldset:nth-child(2)').toggleClass('hide');

in chrome, FF, opera this line works but in ie6-8 it throws an error 'Y.one(...)' is null or not an object.

where is the problem?


回答1:


Have to add the "selector-css3" module to your .use() statement if you want to use CSS3 selectors in browsers that don't support them natively.



来源:https://stackoverflow.com/questions/3713263/yui3-selector-problem-in-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!