zoukankan      html  css  js  c++  java
  • 用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>
  • 相关阅读:
    VS2010之– Web Development(四)-将WebApplication打包发布到IIS
    .NET中TextBox控件设置ReadOnly=true后台取不到值三种解决方法
    jQuery 二级联动
    ajax实现无刷新两级联动DropDownList
    CheckStyle
    《Thinking in Java》学习笔记(三)
    Java垃圾回收机制[转]
    《Thinking in Java》学习笔记(二)
    MySQL操作的一些优化
    《Thinking in Java》学习笔记(一)
  • 原文地址:https://www.cnblogs.com/275147378abc/p/4491131.html
Copyright © 2011-2022 走看看