我想創建菜單欄和如下內容的菜單,但低於其他內容出現在:浮動留下工作不適合
HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<div class="menuheader"> Facebook, Twitter, Youtube </div>
<div class="menu">
<ul> Home </ul>
<ul> About Us
<li> Establishment </li>
</ul>
<ul> Careers
<li> Current Openings </li>
<li> Working with us </li>
<li> Work Culture </li>
</ul>
<ul> Contact Us </ul>
</div>
CSS:
.menu{
background-color:#999999;
color:#FFFFFF;
width:940px;
height:50px;
margin:20px;
padding:20px;
font-size:12px;
float:left;
}
哪裏是你的身體標記?另外,爲了更好地處理菜單,使用嵌套列表。它是語義標記一個約定:'
- 選項1
- 選項2
- 選項2.1
' – rcdmk 2013-02-17 14:16:31