<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
我有一个 HTML 索引文件和一个 CSS 文件。 CSS 文件存储在单独的 CSS 文件夹下,但是当我在查看源代码下查看主页中的代码时,CSS 代码出现在页面中。我在另一台机器上尝试过相同的代码,并且在那台机器上运行良好。
我正在使用这个添加我的 css:
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
</head>
输出出现在 html 文件本身中。
<style>.bod{background-color:#ac83ff...............
<script type="text/javascript">function registeruser(){va
</head>
可能是什么原因或任何解决方案??
最佳答案
您可能启用了 apache 的 pagespeed mod 检查这个 https://developers.google.com/speed/pagespeed/module/filter-css-inline .您可以通过
a2dismod pagespeed
来禁用它
关于css - 外部 css 代码出现在我的 html 索引页面中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29696927/