首页 > 其他 > 详细

横向菜单效果

时间:2017-06-25 14:07:56      阅读:277      评论:0      收藏:0      [点我收藏+]

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>横向菜单</title>
    <script type="text/javascript" src="jquery-1.8.3.min.js"></script>
    <style type="text/css">
     *{
         padding: 0px;
         margin: 0px;
     }
     h3{
         width:200px;
        height:30px;
        margin-top:10px;
        background-color:#ccc;
     }
     ul{
         display: none;
     }
     li{
         list-style-type:none;
        width:200px;
        height:30px;
        line-height:30px;
        text-align:center;
        border-bottom:1px dashed red;
        background-color:green;
     }
    </style>
</head>
<body>
    <h3>我的京东</h3>
      <ul>
          <li>111</li>
          <li>111111111</li>
          <li>111111</li>
          <li>111</li>
      </ul>
    
      <h3>我的京东1</h3>
      <ul>
          <li>222</li>
          <li>222</li>
          <li>222</li>
          <li>222</li>
      </ul>

      <h3>我的京东2</h3>
      <ul>
          <li>333</li>
          <li>333</li>
          <li>333</li>
          <li>333</li>
      </ul>
</body>
<script type="text/javascript">
    //JQuery 入口文件 起到兼容作用
    $(function(){    
        $("h3").mousemove(function(){
            $(this).next("u1").slideToggle(2000);
        });
    })
</script>
</html>

横向菜单效果

原文:http://www.cnblogs.com/kevin-yang520/p/7076643.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!