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>
  • 相关阅读:
    一次聚类引发的一系列问题(工作经验篇)
    SQLServer数据库返回错误的国际化
    记一次SQL优化
    java设计模式-工厂模式(springweb为例子)
    JAVA中的泛型(Generic)
    spring源码分析-core.io包里面的类
    java设计模式-代理模式
    javaWeb正则表达式
    Java中的泛型
    关于API,前后端分离
  • 原文地址:https://www.cnblogs.com/275147378abc/p/4491131.html
Copyright © 2011-2022 走看看