[英]ddsmoothmenu not loading in IE7 and IE8
我正在使用 Dynamic Drive 的 ddsmoothmenu 為我的網站形成一個下拉菜單。 它在 FF/Chrome/IE9 中完美運行,但在 IE7 和 IE8 中無法運行。 根據調試器沒有父 function 在這里找到:
var $mainmenu=$("#"+setting.mainmenuid+">ul") //reference main menu UL
$mainmenu.parent().get(0).className=setting.classname || "ddsmoothmenu"
var $headers=$mainmenu.find("ul").parent()
這就是我調用菜單的方式:
ddsmoothmenu.init({
mainmenuid: "header_top_menu",
orientation: 'h',
classname: 'ddsmoothmenu',
contentsource: "markup"
});
有沒有辦法讓它在 IE 中工作?
使用 HTML5 Polyfill 應該允許您在舊瀏覽器中毫無問題地使用新的 HTML5 語義元素,請查看http://code.google.com/p/html5shiv
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.