zoukankan      html  css  js  c++  java
  • 有用的导航栏下拉代码和调用时间日期函数

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <title>Plain Shane Design > CSS Drop Down Demo</title>
    <style type="text/css">
    *{margin:0; padding: 0;}
    #nav ul { list-style-type:none; }
    #nav ul li { float:left; position: relative;}
    #nav ul li a { border-right:1px solid #e9e9e9; padding:20px; display:block; text-decoration:none; text-
    align:center; color:#999;}
    #nav ul li ul {display: none;}
    #nav ul li:hover ul {display: block; position: absolute; top:56px; min-190px; left:0;}
    #nav ul li:hover ul li a {display:block; background:green; color:#ffffff; 110px; text-align:
    center; border-bottom: 1px solid #f2f2f2; border-right: none;}
    .top { border-top: 1px solid #f2f2f2;}
    </style>
    </head>
    <body>

    <div id="nav">
    <ul>
    <li><a target="_blank">Contact</a>
    <ul>
    <li class="top"><a href="http://www.jb51.net" target="_blank">Web</a></li>
    <li><a href="http://www.jb51.net" target="_blank">Print</a></li>
    <li><a href="http://www.jb51.net" target="_blank">The Rest</a></li>
    </ul>
    </li>
    </ul>
    </div>
    </div>

    </body>
    </html>

    <script language=Javascript>
    var now=new Date()
    document.write(1900+now.getYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日 星期"+(now.getDay()))
    </script>

  • 相关阅读:
    协方差
    小世界网络和无标度网络
    复杂网络谱分析
    图谱
    复杂网络基本概念
    Smarty模板引擎的使用
    ThinkPHP6使用过程中的一些总结。
    ThinkPHP6.0使用富文本编辑器wangEditor3
    ThinkPHP6.0在phpstorm添加查询构造器和模型的代码提示
    在线生成二维码API接口
  • 原文地址:https://www.cnblogs.com/275147378abc/p/5013422.html
Copyright © 2011-2022 走看看