用div做有序列表,非常重要!!!

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#apDiv1 {
     position: absolute;        //第一个Div
left: 0px; top: 0px; width: 100%; height: 54px; z-index: 1; background-color:#3FF; } #apDiv2 {   position:relative; margin:auto; width: 80%; height: 54px; z-index: 2; background:#F66; } .liebiao{ position:relative; float:left; width: 20%; height: 54px; z-index: 2; background-color:#0F3; overflow:hidden; } .hang{ position:relative; float:left; width: 20%; height: 54px; z-index: 2; background-color:#0F3; } #apDiv4 { position: absolute; left: 0px; top: 54px; width: 100%; height: 114px; z-index: 2; background-color:#F93; } </style> </head> <body> <div id="apDiv1"><div id="apDiv2"> <div id="apDiv3" class="liebiao" onmouseover="this.className='hang'" onmouseout="this.className='liebiao'" > <div id="apDiv4"> <p>第一行</p> <p>第二行</p> </div> 列表</div> <div id="apDiv3" class="liebiao" onmouseover="this.className='hang'" onmouseout="this.className='liebiao'" > <div id="apDiv4"> <p>第一行</p> <p>第二行</p> </div> 列表</div> <div id="apDiv3" class="liebiao" onmouseover="this.className='hang'" onmouseout="this.className='liebiao'" > <div id="apDiv4"> <p>第一行</p> <p>第二行</p> </div> 列表</div><div id="apDiv3" class="liebiao" onmouseover="this.className='hang'" onmouseout="this.className='liebiao'" > <div id="apDiv4"> <p>第一行</p> <p>第二行</p> </div> 列表</div> </div> </div> </body> </html>

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注