【问题标题】:jquery ajax load() does not load internal css for webkit browsersjquery ajax load() 不会为 webkit 浏览器加载内部 css
【发布时间】:2010-09-17 00:59:51
【问题描述】:

css 部分完全没有反映在输出中(仅适用于 webkit,其他都可以),就好像没有定义 css,javascript 工作...

Ajax 调用

    $("#output_area").load("abc.html");

abc.html源代码:(尖括号省略)

!DOCTYPE HTML
html
    head
        style type="text/css"

            css..
            css..
            css..

            NOT LOADED/REFLECTED IN THE OUTPUT

        /style
    /head
    body

        HTML...
        HTML...
        HTML...

        script type="text/javascript"

            JAVASCRIPT IS LOADED AND IT WORKS

        /script
    /body
/html   

【问题讨论】:

  • 一个快速的聪明猜测:尝试将样式块放在正文中,我假设 jquery 的加载函数忽略了头块

标签: jquery css google-chrome safari webkit


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2013-04-01
  • 2011-04-23
  • 1970-01-01
  • 2013-10-27
  • 2013-03-04
  • 1970-01-01
  • 2012-07-18
  • 1970-01-01
相关资源
最近更新 更多