gpt4 book ai didi

html - Google Chrome 审核工具说要将 CSS 放入文档头部

转载 作者:可可西里 更新时间:2023-11-01 14:53:03 26 4
gpt4 key购买 nike

Google Chrome 审核工具说:

Put CSS in the document head (3) CSS in the document body adversely impacts rendering performance. Link node bootstrap-extract.css should be moved to the document head Link node style.css should be moved to the document head Link node css should be moved to the document head

但是样式表是在头部链接的。这是代码:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr-FR" xml:lang="fr-FR">
<head>
<title>site</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/resources/css/bootstrap-extract.css">
<link rel="stylesheet" type="text/css" href="/resources/css/style.css">
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
etc.

我错过了什么?

最佳答案

您的代码看起来对我应该有效,但是,meta标签不应以 /> 结尾:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

可能导致<head>标记关闭,但这不太可能。

您是否查看过 Google Chrome 中的 HTML 以了解它的显示方式与代码的外观相比?

关于html - Google Chrome 审核工具说要将 CSS 放入文档头部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15131991/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com