我一直在尋找解決方案,因爲這是一個常見問題。 所有這些都爲別人工作的「解決方案」並沒有爲我工作:(CSS/HTML - 頁腳不會留在頁面底部
這是我的index.html文件的正文:
<body>
<div id="header">
<table width="100%" height="auto" border="0">
<tr>
<td><h1 id="logo"><a href="#">WEBSITE</a></h1></td>
<td><div id="navigation">
<ul>
<a href="#"><li>HOME</li></a>
<a href="#"><li>FORUM</li></a>
<a href="#"><li>NEWS</li></a>
<a href="#"><li>INFORMATION</li></a>
<a href="#"><li>GALLERY</li></a>
<a href="#"><li>STAFF APPLICATIONS</li></a>
<a href="#"><li>CONTACT US</li></a>
</ul>
</div></td></tr></table>
</div>
<div id="announcement">
<center>
<p><marquee>Latest News: WEBSITE IS STILL UNDER MAINTENANCE!</marquee></p>
</center>
</div>
<div id="slider">
<center>
<h1>IMAGE SLIDER COMING SOON</h1>
</center>
</div>
<div id="featured">
<table width="100%" height="100%" border="0">
<center>
<tr>
<!-- Column 1 -->
<td align="center" valign="top"><div id="thumbnail">
<img src="images/logo.png" alt="" title="1" width="100px" height="100px" />
<h3>Our Community, Your Community</h3>
<p>When you join our community, you are part of our community. We like outsiders that join us, because it means that we are getting <b>BIGGER</b>, and bigger is better! We are growing, gaining more members, more customers and more jobs are available! If you have not already joined us, then join us now!</p>
<a href="#">Register</a>
</div></td>
<!-- Column 2 -->
<td align="center" valign="top"><div id="thumbnail">
<img src="images/thumbnail-2.png" alt="" title="2" width="100px" height="100px" />
<h3>Virus & Spyware Free</h3>
<p>All the projects we create are checked by other members of the organisation to ensure your computer & security is not
at risk because of our products. We also release the source code of the projects that we have created so you can check yourself.</p>
</div></td>
<!-- Column 3 -->
<td align="center" valign="top"><div id="thumbnail">
<img src="images/thumbnail-1.png" alt="" title="3" width="100px" height="100px" />
<h3>Free Open-Source Projects</h3>
<p>We create projects for the public to use without paying a penny or entering any pesky surveys. The projects we create
are open-sourced which means the source code is available to the public to use however they want as long as they leave
credits in the project that they created! The projects we create can range between Websites, programs and on special
occasions, games.</p>
<a href="#">Read More</a>
</div></td>
</center>
</div>
<div id="footer">
Test
</div>
</body>
這是我的CSS頁腳:
#footer {
clear: both;
position: relative;
z-index: 10;
height: 3em;
margin-top: -3em;
background-color: red;
}
如果有人知道我怎麼能解決這個話請說,
在先進的感謝
獨特
表標籤不關閉在HTML表單 – Kishan 2015-06-03 07:06:38