According to the W3C standard, <style> elements can only go in the <head>. It's a dumb rule, but it's the rule. IE and Firefox are happy to put the <style> in the <body>, but Safari won't do it (it ignores <styles> when setting innerHTML) and I assume Chrome, which is based on WebKit, does the same. You have to split your loaded file into separate HTML and CSS, and append a <link rel="stylesheet"> or <style> to the <head> for the CSS. It's a pain, but it is the standard so it's hard to fault WebKit.
On Sep 8, 11:27 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Gotcha. > > -----Original Message----- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Jove > Sent: Monday, September 08, 2008 10:41 AM > To: jQuery (English) > Subject: [jQuery] Re: $("xx").load can't load css and js in html file on > Chrome?? > > I' sorry, "xx" just a example, in actually I'm using $ ("#content").load(), > but the point of this topic is about .load() on Chrome.