我正在試圖將腳註文檔加入索引文件。但它不起作用,我懷疑我的css文件有問題。如何在HTML文檔中加入'include'
html {background: url("bakgrund.gif");}
/*https://pixabay.com/ Gratis bilder Creative Commons CC0*/
html { overflow-y: scroll;}
body {
background: white;
\t border: 1px solid #0000ff;
font-family: calibri, arial, sans-serif;
\t width: 750px;
\t margin: 25px auto;
\t padding: 0;
}
header {
\t height: 175px;
\t background-color: #edffff;
\t margin-top: -16px;
\t padding: 0;
} \t
nav \t {
\t height: 35px;
\t background-color: #edffff;
\t padding-left: 10px;
}
section \t {
\t width: 550px;
\t float: left;
\t min-height: 400px;
}
article \t {
\t width: 550px;
\t float: left;
\t background-color: yellow;
}
aside \t {
\t width: 200px;
\t float: right;
\t background-color: lightgrey;
}
footer \t {
\t clear: both;
\t position: relative;
\t height: 55px;
\t padding: 5px ;
\t text-align: center;
\t background-color: magenta;
} \t
address \t {
\t font-size: 12px;
\t font-style: normal;
} \t
/* Menykataloger */
ul {
margin: 0;
padding: 0;
}
#meny li {
display: inline;
padding: 5px 1px;
}
#meny li a {
margin: 0 5px 0 5px;
padding: 5px 15px;
text-align: center;
font-family: arial;
font-size: 13px;
font-weight: bold;
color: black;
border: 1px solid black;
border-radius: 5px;
background: yellow;
}
#meny li a:hover {
background: #CCEBFF;
color: black;
}
#meny a:link, #meny a:visited {
color: black;
text-decoration: none;
}
#meny a:active {
color: white;
}
#meny a#current {
background: white;
}
<!DOCTYPE html>
<html lang="en-US">
\t <head>
\t \t <title>Test</title>
\t \t <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\t \t <link rel="stylesheet" href="stil.css" type="text/css">
\t </head>
<body>
<nav>
<ul id="meny">
<li><a href="index.html" id="current">Hem</a></li>
<li><a href="#">AAA</a></li>
<li><a href="#">BBB</a></li>
<li><a href="#">CCC</a></li>
</ul>
</nav>
<section>
<h2>Huvudrubrik</h2>
<p>Huvudinnehåll</p>
\t <article>
\t <h2>Rubrik 1</h2>
\t <p> \t Innehåll 1 med rubriker</p>
\t </article>
\t <article>
\t <h2>Rubrik 2</h2>
\t <p> \t Innehåll 2 med rubriker
\t </p>
\t </article>
</section> \t \t
\t
<aside>
Nyhetsbrev H-spalt
</aside>
<?php include("fot.php"); ?>
結果是錯誤的邊界的解釋。它只是環繞頭部而不是整個區域。