Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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 CSS只能在Chrome中工作_Html_Css_Google Chrome - Fatal编程技术网

Html CSS只能在Chrome中工作

Html CSS只能在Chrome中工作,html,css,google-chrome,Html,Css,Google Chrome,我需要在今晚上交这个网站,但它只在铬。我已经尝试了我能想到的一切(我对这一点非常陌生,几周前才学会HTML和CSS)。HTML似乎工作正常,但我的样式表似乎不工作 CSS: @charset "utf-8"; /* CSS Document */ body { background-image: url('http://oi43.tinypic.com/2yvmjvq.jpg'); color: #FFF; } ::selection { background: #FB

我需要在今晚上交这个网站,但它只在铬。我已经尝试了我能想到的一切(我对这一点非常陌生,几周前才学会HTML和CSS)。HTML似乎工作正常,但我的样式表似乎不工作

CSS:

@charset "utf-8"; /* CSS Document */
body {
    background-image: url('http://oi43.tinypic.com/2yvmjvq.jpg');
    color: #FFF;
}

::selection {
    background: #FB5549;
}

::-moz-selection {
    background: #FB5549;
}

a.class2 {
    text-decoration: none;
    color: #1F1B21;
}

a.class2:visited {
    color: #1F1B21;
}

a.class2:hover {
    color: #1F1B21;
}

a.class2:active {
    color: #1F1B21;
}

a.class1 {
    text-decoration: none;
    color: black;
}

a.class1:visited {
    color: #0A0A0A;
}

a.class1:hover {
    color: #FB5549;
    font-style: italic;
}

a.class1:active {
    color: #FB5549;
}

a.class3 {
    text-decoration: none;
    color: #FFF;
}

a.class3:visited {
    color: #FFF;
}

a.class3:hover {
    color: #FB5549;
    font-style: bold;
}

a.class3:active {
    color: #FB5549;
}

a.class4 {
    text-decoration: none;
    color: #0A0A0A;
}

a.class4:visited {
    color: #0A0A0A;
}

a.class4:hover {
    color: #0A0A0A;
}

a.class4:active {
    color: #0A0A0A;
}

#wrapper {
    clear: both;
    width: 690px;
    margin-top: 85px;
    margin-left: auto;
    margin-right: auto;
    background-color: #0A0A0A;
    padding-top: 14px;
    padding-bottom: 2px;
}

header {
    text-align: center;
    width: auto;
    margin-top: -8.0em;
}

h1 {
    font-family: "lobster 1.4";
    color: #1F1B21;
    font-size: 50px;
}

h2 {
    font-family: "aleo";
    font-size: 22px;
    line-height: 20px;
    letter-spacing: 0.8px;
}

h6 {
    font-family: "lekton";
    color: white;
    font-weight: 500;
    text-align: center;
}

nav {
    position: fixed;
    left: 208px;
    top: 145.5px;
    width: 8em;
    margin-top: -2.5em;
    font-family: "consolas";
    font-size: 14px;
    line-height: 18px;
    color: #0A0A0A;
    text-align: right;
}

aside {
    position: fixed;
    left: 1046px;
    top: 145.5px;
    width: 177px;
    margin-top: -2.5em;
    font-family: "consolas";
    font-size: 14px;
    line-height: 18px;
    color: #0A0A0A;
    text-align: justify;
}

#content {
    width: 650px;
    text-align: justify;
    font-family: "lekton";
    font-size: 14px;
    line-height: 18px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-left: 20px;
    border-bottom: 1px dotted #C6C6C6;
}

footer {
    clear: both;
    width: 690px;
    line-height: 14px;
}
HTML文件

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <meta charset="utf-8">
      <br>
      <title>Start</title>
      <link href="style/stylesheet.css" rel="stylesheet" type="text/css>
         <style type="text/css">
      </style>
   </head>
   <body>
      <nav>
         <h2><a href="index.html" class="class4" title="Tilbage til startsiden">menu</a></h2>
         <a href="start.html" class="class1">start</a><br>
         <a href="om mig.html" class="class1">om mig</a><br>
         <a href="skolearbejde.html" class="class1">skolearbejde</a><br>
         <a href="http://www.rtgkom.dk/wiki/Main_Page" class="class1" target="blank">rtgkom</a><br>
      </nav>
      <div id="wrapper">
         <header>
            <h1><a href="start.html" class="class2">laura Andersen</a></h1>
         </header>
         <div id="content">
            <article>
               <hgroup>
                  <h2>om siden</h2>
               </hgroup>
               <p>
                  Dette er mit studieweb på <a href="http://www.rtgkom.dk/wiki/Main_Page" class="class3" target="blank">rtgkom</a>, hvor jeg lægger alle de relevante projekter ud, som jeg arbejder på i sammenhæng med mit gymnasieforløb. Siden er lavet i faget kommunikation/it, hvor vi har arbejdet med HTML og CSS.
               </p>
            </article>
         </div>
         <footer>
            <center>
               <h6>Lavet af <a href="index.html" class="class3">Laura Andersen</a><br>
                  Sidst opdateret den 22. oktober 2013
               </h6>
            </center>
         </footer>
      </div>
      <aside>
         <h2>hvad laver jeg?</h2>
         <p>Jeg er i gang med at lave mit studieweb. Vi er startet på emnet "grafisk design".</p>
      </aside>
   </body>
</html>


开始 链接标记中缺少“%”:

<link href="style/stylesheet.css" rel="stylesheet" type="text/css>

尝试通过验证器运行所有HTML,例如,检查错误。

请描述问题。到底什么不起作用以及它应该如何工作?Stack Overflow不是个人黄金支持论坛。我不完全确定,但当我在Chrome以外的其他浏览器中查看网站时,我似乎没有样式表我知道,但是我试着问过我的一些同学,他们也不知道出了什么问题。你看,他们中的一些人也有同样的问题。我们有时想解决一个问题,我只想问一下不,我已经从问题中删除了“紧急”。清晰且格式良好的问题更有可能快速得到回答。如果你想要快速回答,则由你自己来创建一个清晰的问题。你可以通过以下方式来实现这一点。谢谢。我们的老师给了操作系统一个我们可以使用的“模板”,显然他忘记了一个“模板”。我们现在都在纠正它。谢谢,你是个救命恩人。@user2925281哇,看来你的老师自己可能需要上几节课:(