English 中文(简体)
j Query append To()在IE7不开火
原标题:jQuery appendTo() not firing in IE7

I m moving some stuff around on document ready. Think of it like a fancy tab navigation, where I have some dynamic content in a list navigation, that toggles between the different panels.

我确实控制了标识,但是,从用于添加动态内容的仪器中,该图纸正处在一个不同的模板中,因此,在我想要时,Im基本上在文件上站起来。 它发挥了巨大作用,但伊埃7除外,该运动从未发生。

<>光>:

<ul class="pnlHandler"></ul>

<div id="Panels">
   <li>Here goes the content that I want to move</li>
   <div class="pnlFront">
      This has more content, but it s already where I want it
   </div>
</div>

www.un.org/Depts/DGACM/index_french.htm

$(document).ready(function(){
   $("#Panels").children("li").appendTo(".pnlHandler");
});
最佳回答

IE>;<>;>;>;<>/>;>;>;>;>;>;>;>;>。 需具备这种能力。

<ul class="pnlHandler"></ul>

<div id="panels">
   <ul class="dummy">
     <li>Here goes the content that I want to move</li>
   </ul>
   <div class="pnlFront">
      This has more content, but it s already where I want it
   </div>
</div>

之后,在 your中:

$(document).ready(function(){
   $("ul.dummy", "#panels").children("li").appendTo(".pnlHandler");
   $("ul.dummy", "#panels").remove();
});
问题回答

暂无回答




相关问题
jquery set div width fails in IE7

I have the following code and it works correctly in FF and IE8 but fails in IE 7 anyone have an idea or hack if ($("#midRight:contains( Quick Links )").length == 0) { $("#midCenter").css({ ...

Ie7 float right bug?

I have a div floated right. Inside that div are two other divs. The first div has a background color and when I refresh, it s "bleeding" into the second div. (Sometimes in front of it sometimes ...

IE errors with jQuery & timeout

In a jquery hover event I use the following code to drop down a menu: clearTimeout(hTimeout); $( #lowermenu ).queue( fx , []); $( #menucenter .current ).removeClass( current ); $(this).children( a )....

window.onbeforeunload not firing in child window

I want to bind a function to the beforeunload event of a child window in Javascript. I have the following code: newWind = window.open(settings.url, "Dialog", "width=" + settings.width + ",height=" + ...

My App s email shows up blank in IE7

My app sends out email to users (upon signup, welcome etc.) and they show up blank in IE. Fine in IE8, Firefox. The content-type for the email is set to html. The email has links. Any pointers on how ...

热门标签