gpt4 book ai didi

html - Google Chrome 的奇怪边距 (HTML)

转载 作者:可可西里 更新时间:2023-11-01 14:49:02 25 4
gpt4 key购买 nike

我正在制作一个网站(HTML、CSS、PHP),我遇到了一个问题,即奇怪的边距只出现在 Google Chrome 上,它在 Firefox 或 IE 上运行良好。即使我删除了我的样式表,仍然存在这个奇怪的边距。如何删除它?

这是我的代码:

<html>
<head>
<meta charset="utf-8" />
<!-- <link rel="stylesheet" href="./css/style.css" /> -->
<link href='http://fonts.googleapis.com/css?family=Fresca|Dosis:200,300,400,500,600,700,800|Cabin+Condensed:400,600,700' rel='stylesheet' type='text/css'>
<title>My Site</title>
</head>

<body>
<?php include("./php/header.php"); ?>
<?php include("./php/profile.php"); ?>
</body>
</html>

下面是谷歌浏览器在我检查元素时向我显示的内容:

看看这张照片 enter image description here

空行导致了这些边距,但我不知道它们在这里做什么。

最佳答案

真的很奇怪...可能是编码问题。请用 notepad++ 打开你的 php 文件,在格式菜单中选择 utf-8 without BOM 编码。

关于html - Google Chrome 的奇怪边距 (HTML),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23308495/

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