Html 头部的变化导致站点无法正常工作?

Html 头部的变化导致站点无法正常工作?,html,css,Html,Css,我在文档的头部添加了新的元标记和不同的标题标记,这使得重绘黑色背景的IE代码无法工作 你知道我错过了什么吗?我在新代码中看不到任何会导致此中断的内容 旧的正确工作代码: <!-- saved from url=(0022)http://internet.e-mail --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh

我在文档的头部添加了新的元标记和不同的标题标记,这使得重绘黑色背景的IE代码无法工作

你知道我错过了什么吗?我在新代码中看不到任何会导致此中断的内容

旧的正确工作代码:

 <!-- saved from url=(0022)http://internet.e-mail -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>netball</title>
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.4.1/build/cssreset/cssreset-min.css">
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="favicon.ico"> <!--[if IE 6]>
    <link href="ie6.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <!--[if IE 7]>
    <link href="ie7.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <!--[if IE 8]>
    <link href="ie8.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <!--[if IE 9]>
    <link href="ie9.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    .black_overlay {position:absolute; top: expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px" : body.scrollTop+"px");}</style><![endif]-->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script src="jquery.simpletip-1.3.1.min.js"></script>
    </head>

无挡板篮球
无工作新代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Netball - notice board</title>
<meta name="description" content="netball description to go here." />
<meta name="keywords" content="net, ball, netball, womens" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.4.1/build/cssreset/cssreset-min.css">
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico"> <!--[if IE 6]>
<link href="ie6.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 7]>
<link href="ie7.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 8]>
<link href="ie8.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 9]>
<link href="ie9.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE]>
<style type="text/css">
.black_overlay {position:absolute; top: expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px" : body.scrollTop+"px");}</style><![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
</script>
<script src="jquery.simpletip-1.3.1.min.js"></script>
</head>

上网球-布告栏

看起来您的链接标签格式不正确。关闭它们,您应该会很好。

如果删除您更改的标题和元标记,会发生什么情况?您的链接标记没有关闭,请尝试先关闭它们,然后重试。嗨,Stefan,我以为这样做有效,但事实并非如此。我关闭了两个标签:这就是所有需要做的吗?还有那些在IF IE Blocks中的Hanks Stefan,我现在也做了这些。在第一个示例中,它是否也与所有HTML上面的注释有关?这是把IE推到怪癖模式还是什么?是的,doctype之前的评论肯定会给你带来问题。因此,我找到了一些关于buggy行为的参考: