<div class="daohanglan">
<div class="dh">小米手机 <--多个自己定义-->
<div class="dhbottom">
     </div>
   </div>
</div>
<--要给最外面的div设置padding值为了区分开从外部移入和横向移动-->
$(document).ready(function(){
let tag=0;
$(".daohanglan").mouseenter(function(){ <!--.daohanglan为导航栏所在的块,.dh为显示的导航标题,.dhbottom为移入所要显示出来的列表-->
        tag=3;
console.log("daohanglan移入");
});
$('.dh').hover(function(){
$(this).mouseenter(function(){
tag=1;
console.log("dh移入");
});
if(tag===1)
{ $(this).children('.dhbottom').css({height:230}).css({display:"block"}).show(); }
if(tag===3){
$(this).children('.dhbottom').animate({height:230},500).show(); }
},function(){
$(this).children('.dhbottom').animate({height: 0}, 500).hide(); }); });

最新文章

  1. C# 泛型
  2. Hadoop学习笔记—4.初识MapReduce
  3. 关于sql 的列转行
  4. HTTP状态代码含义
  5. AutoResetEvent waitone set进一步理解补充
  6. 自动化中的PageObject思想
  7. 配置OpenStack以使用LDAP实现身份管理
  8. js难点之闭包理解
  9. RocketMq消息队列使用
  10. Memo打印
  11. (转)ThinkPHP3.0 使用分组后路径访问无效的解决方法!
  12. 循环结构中break、continue、return和exit的区别
  13. jenkins IOS- ad-hoc 打包
  14. h5video标签
  15. 《java入门第一季》之面向对象(继承)
  16. springboot2 redis
  17. Hadoop2.7.6_04_HDFS的Shell操作与常见问题
  18. boke练习: springboot整合springSecurity出现的问题,传递csrf
  19. centos7下apache2.4反向代理
  20. 20155313 杨瀚 《网络对抗技术》实验八 Web基础

热门文章

  1. The philosophy of ranking
  2. Draw.io
  3. .Net Core2.1 秒杀项目一步步实现CI/CD(Centos7.2)系列一:k8s高可用集群搭建总结以及部署API到k8s
  4. LoRa硬件调试-前导码
  5. idea 开发中常用的26个快捷键!
  6. 如何使用人工智能保护API的安全
  7. Eclipse中安装JRebel热部署教程
  8. 【乘风破浪】Android系统启动流程整理
  9. Django之上传图片,分页,三级联动
  10. unity之初级必备知识