我想知道如果任何人有任何建议如何构建一个网站。我在顶部有一个标志,我想要一个导航栏在下面,最后是我想要的页面内容。我搞砸了好几个小时,但我似乎无法让导航栏走到标识下方,并在主要内容上方。有没有人有任何想法?这里是我的代码:如何构建HTML页面的布局?
<!DOCTYPE html>
<!-- Copyright Pumplead Studios, 2013 -->
<html>
<head>
<link rel="stylesheet" href="main.css" type="text/css" />
<script type="text/javascript" src="slideshow.js"></script>
<style>
#Slideshow1 img { width:1200px; height:500px }
</style>
<title> Law Firm </title> <!-- Seriously, don't forget to change that.-->
<div class="heading">
<div id="head">
<div id="logo">
<img src="logo.png" alt="Logo" width="1700" height="175">
</div>
<div id="navigation">
<a href="#">Home</a>
<a href="#">About us</a>
<a href="#">Areas of Practice</a>
<a href="#">Reviews</a>
<a href="#">I'm running out of ideas</a>
<a href="#">Boring....</a>
</div>
</div>
</div>
<!-- Include content types, links to external resources, keywords for the search engine, epirations and stuff, and whatever else needs to go here like titles and website icons. -->
</head>
<body> <!-- Obviously, the body starts here. -->
<div class="main">
<div id="content"> <!-- Let's kick it off with some stuff, of course. -->
<!-- Now let's get some java up in here!! -->
<script>
var imgArray = new Array();
imgArray[0] = "images/pic1.png";
imgArray[1] = "images/pic2.png";
slideshowFade('Slideshow1','',imgArray,20,5000);
</script>
</div>
</div>
</body>
</html>
看看添加一个CSS页面。有很多教程让你开始。 –
你还需要发布你的'main.css'文件,以便我们可以看到你迄今为止做了什么。 – finspin
java!= javascript –