我无法将菜单重新定位到我喜欢的位置。我如何能够获取整个列表并将其放置在我想要的页面上?对不起,一个简单的问题,我不是很有经验。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<title></title>
<style>
body {
background-color: lightgrey;
}
.menu {
list-style: none;
font-family: "futura", sans-serif;
}
.menu li {
float: left;
border-left: 2px solid black;
padding-left: 10px;
margin-right: 10px;
}
a {
text-decoration: none;
}
a:link {
color: grey;
}
a:hover {
color: white;
}
a:visited {
color: darkgrey;
}
.menu li:first-child {
border: none;
}
div.title {
float: left;
font-family: "futura", sans-serif;
padding-left: 10px;
margin-right: 10px;
font-size: 36px;
}
</style>
</head>
<body>
<div class="title">Dan's Cupcakes</div>
<ul class="menu">
<li><a href="http://blah.com">Home</a></li>
<li><a href="http://ilovetoeatgrapes.com">Cupcakes</a></li>
<li><a href="http://thehouseisonfire.com">Contact</a></li>
<li><a href="http://cars.com">About Us</a></li>
</ul>
</body>
</html>