【发布时间】:2012-08-23 23:47:45
【问题描述】:
我通过单击按钮将具有以下结构的完整 html(见下文骨架)页面加载到另一个 html 页面中。
<!--START:HTML to be loaded by ajax-->
<head>
<!--START: The content inside this head tag is not processed while the page is loaded via ajax-->
<link rel="stylesheet" type="text/css" href="css/rrr.css" media="screen, projection, print" />
<script>
...
</script>
<script type="text/javascript" src="aaas/xxxx.js"></script>
<!--END: The content inside this head tag is not processed while the page is loaded via ajax-->
</head>
<div id="content">
<!--Page content on which the above script tags inside head tag to act-->
</div>
<!--END:HTML to be loaded by ajax-->
在safari 5.0.1和5.0.2版本中,head标签里面的内容是不被解析的,但是html里面的内容在所有的IE、FF和chrome和safari 5.1.2中都会被解析。 并且 id 等于“内容”的 div 内的内容显示在所有浏览器中,包括 safari 5.0.1 和 5.0.2。 请帮助我。在此先感谢。
【问题讨论】:
-
head 标签内的脚本被处理,当我单独删除 head 标签并将脚本标签作为 id 为 "content" 的 div 的兄弟时
标签: javascript ajax cross-browser safari