Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.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
Html 为什么此站点会加载到Internet Explorer';什么是怪癖模式?_Html_Internet Explorer - Fatal编程技术网

Html 为什么此站点会加载到Internet Explorer';什么是怪癖模式?

Html 为什么此站点会加载到Internet Explorer';什么是怪癖模式?,html,internet-explorer,Html,Internet Explorer,为什么会在怪癖模式下加载?我知道我可以使用X-UA-Compatible,但我更喜欢解决下划线问题,因为这就是它的定义: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 如果希望以标准模式加载,请使用HTML 5 doctype: <!DOCTYPE html> 编辑: 另外,向下移动初始元标记。这是我在查看您的网站时看到的:

为什么会在怪癖模式下加载?我知道我可以使用X-UA-Compatible,但我更喜欢解决下划线问题,因为这就是它的定义:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

如果希望以标准模式加载,请使用HTML 5 doctype:

<!DOCTYPE html>

编辑

另外,向下移动初始元标记。这是我在查看您的网站时看到的:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<HTML>
<head>

<title>

20.000+ Cheap Wall Posters and Postcards

</title>

<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

20000多张便宜的墙画和明信片
您有重复的内容类型元标记。最重要的一点是让你仍然有怪癖。如果您完全删除它,那就好了,并确保您的字符集是准确的(utf-8或iso-8859-1)。应该是:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<HTML>
<head>

<title>

20.000+ Cheap Wall Posters and Postcards

</title>

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

20000多张便宜的墙画和明信片

据我所见,该页面甚至没有定义doctype。@Rob我已将
更改为
,但它仍在这样做……我编辑了我的回复以处理该问题。我已经确认我描述的更改(加上!DOCTYPE html)将在标准模式下加载。@Rob我在这些声明方面做得不太好。你能告诉我它应该是什么样子吗?可能是:``?只需删除第一行。第一行应该是。请也看一下: