Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 为什么我的样式表无法加载到Internet Explorer中? 附件 . . ._Css_Internet Explorer - Fatal编程技术网

Css 为什么我的样式表无法加载到Internet Explorer中? 附件 . . .

Css 为什么我的样式表无法加载到Internet Explorer中? 附件 . . .,css,internet-explorer,Css,Internet Explorer,在ie8和IE7中,从未加载此样式表。。。为什么?您的是否放置在标记之间?链接应仅出现在文档的标题中。尝试关闭元素,如下所示 <div class="build-editor" id="section-content"> <link href="/stylesheets/upload-from-disk.css?1280508898" media="screen" rel="stylesheet" type="text/css"> <div class="atta

在ie8和IE7中,从未加载此样式表。。。为什么?

您的
是否放置在
标记之间?

链接应仅出现在文档的
标题中。

尝试关闭
元素,如下所示

<div class="build-editor" id="section-content">
<link href="/stylesheets/upload-from-disk.css?1280508898" media="screen" rel="stylesheet" type="text/css">

<div class="attachments">
    <h1 class="at-header">Attachments</h1>
    <div class="at-options">
    .
    .
    .

我在
区域之外处理了几个链接CSS的项目,我相信它通常是有效的(也许在IE6中不起作用)


注意即使它能工作,也不符合规范。如果可以,最好将它放在
中。

如果您试图优化RoR应用程序。您可以将内容单元用于

例如。。。在您的布局中

<link type="text/css" rel="stylesheet" href="styles.css" />



在视图中

这个在哪里?有什么原因它不在
中吗?我喜欢IE不是真正的浏览器这一事实;)对IE的攻击很好。当然,如果你真的知道HTML是如何工作的,听起来会更好……我还有其他页面,链接出现在body=\it应该出现,但它也可能出现在头部之外,这取决于DOCTYPE和浏览器所处的模式。IE因其“怪癖”模式而臭名昭著。这是一个很好的选择。然而,我试图优化我的RoR应用程序,只在需要时加载样式表。但我想,如果它们像好的浏览器一样被缓存,那就没关系了。“我试图优化我的RoR应用程序,让样式表只在需要时加载。”正确的方法是制作一个助手,你可以从你的视图中调用它,在呈现页面的头部添加
链接
样式
标记。RoR没有内置类似的东西吗?Symfony和Zend都做我通常使用的代码。嗯,我的应用程序有很多AJAX。。我们的目标是,如果工作流说最好保持原样,就不要刷新页面,而只进行页面替换。
<head>
   <%= yield :head %>
 </head>
<% content_for :head do %>
   <%= stylesheet_link_tag 'upload-from-disk' %> 
<% end %>