// create a style element
$("#main").html('<style id="custom_persona_css"></style>');
$("#custom_persona_css").append('#abc{ color:#000000; }');
你可以发现,这在IE8上不起作用!
我该如何让它在IE8上运行?
会出现错误:'unexpected call to method or property access',因为IE8无法识别html标记为有效(abc部分)。