开发者

Span inside div? problems in ie8?

开发者 https://www.devze.com 2023-04-09 09:31 出处:网络
I have span tag inside div tag. var a = jQuery(\"<span class = \'B\'>\"); For some reason i am not able to see the contents of var a on i开发者_JAVA百科e., but I can see the contenet on mozil

I have span tag inside div tag.

var a = jQuery("<span class = 'B'>");

For some reason i am not able to see the contents of var a on i开发者_JAVA百科e., but I can see the contenet on mozilla.


You have no div there.

Try this one

var a = jQuery("<span />", {class:'B'}).appendTo('#yourDiv');
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号