做了个项目,结构很简单

<div class="index-main" data-url="./img/index_default.jpg">
<p class="main-bg" data-init="img"><img src="./img/index_default.jpg" alt="" /></p>
<h1 class="index-logo">
<a href="index.php"><img src="./img/index_logo.png" alt="RAMAD" /></a>
</h1>
<div class="index-cont">
<ul>
<li class="ramad" data-url="./img/index01.jpg">
<strong class="tl"><a href="javascript:;"><span>RAMAD</span>&nbsp;莱蒙达<em class="line"></em></a></strong>
<div class="cont">
<span class="line"></span>
<a href="aboutus.php" data-url="./img/index03.jpg">RAMAD介绍</a>
<a href="aboutus.php" data-url="./img/index02.jpg">RAMAD理念</a>
</div>
</li>
<li data-url="./img/index04.jpg">
<strong class="tl"><a href="javascript:;">品牌历史</a></strong>
<div class="cont">
<span class="line"></span>
<a href="history.php" data-url="./img/index05.jpg">品牌历史</a>
<a href="customize.php" data-url="./img/index06.jpg">定制历史</a>
</div>
</li>
<li data-url="./img/index07.jpg">
<strong class="tl"><a href="javascript:;">赏&析</a></strong>
<div class="cont">
<span class="line"></span>
<a href="idea.php" data-url="./img/index09.jpg">析&nbsp;·&nbsp;<span class="arial">STORY</span></a>
<a href="idea.php" data-url="./img/index08.jpg">赏&nbsp;·&nbsp;<span class="arial">ART</span></a>
</div>
</li>
<li data-url="./img/index10.jpg">
<strong class="tl"><a href="javascript:;">产品展示</a></strong>
<div class="cont">
<span class="line"></span>
<a href="product.php" data-url="./img/index11.jpg">西服</a>
<a href="product.php" data-url="./img/index13.jpg">衬衫</a>
<a href="product.php" data-url="./img/index12.jpg">其他</a>
</div>
</li>
<li data-url="./img/index16.jpg">
<strong class="tl"><a href="javascript:;">服务体系</a></strong>
<div class="cont">
<span class="line"></span>
<a href="idea.php" data-url="./img/index14.jpg">定制流程</a>
<a href="idea.php" data-url="./img/index15.jpg">核心体系</a>
</div>
</li>
</ul>
</div>
<div class="index-foot">
<div class="cont">
<p class="fl">浙ICP-88880000号&nbsp;丨&nbsp;<a href="#">集团网站入口</a>&nbsp;丨&nbsp;TEL:1512634984</p>
<p class="fr"><a href="#">中文版</a>&nbsp;丨&nbsp;<a href="#">ENGLISH</a></p>
</div>
</div>
</div>
$(".index-cont li").mouseenter(function() {
alert($(this).index());
});

这里的mouseenter时灵时不灵,原因是.main-bg用的绝对定位,.index-cont相对定位覆盖在上面,IE在一个绝对定位元素里面没有内容, 没有背景的时候, 鼠标覆盖不到 .........解决方法加个透明的背景就解决了

IE jquery mouseenter,mouseover超奇葩问题的更多相关文章

  1. jquery中mouseover和mouseenter的区别

    jquery中mouseover和mouseenter的区别 一.总结 一句话总结: 见名知意:enter(进入)和over(在上方)的意思好好思考一下 mouseover就是从子元素回到自己的时候也 ...

  2. jquery mouseenter()方法 语法

    jquery mouseenter()方法 语法 作用:当鼠标指针穿过元素时,会发生 mouseenter 事件.该事件大多数时候会与 mouseleave 事件一起使用.mouseenter() 方 ...

  3. 一款由jquery实现的超炫的页面加载特效

    今天为大家带来一款由jquery实现的超炫的页面加载特效.连续的几个页面分开特效.最后由三维的线条由远至近消失,然后由近至远出现.效果超级梦炫.一起看下效果图: 在线预览   源码下载 实现的代码. ...

  4. 基于jquery和svg超炫的网页动画

    今天给大家分享一款基于jquery和svg超炫的网页动画.这款动画效果非常炫.下面还有重播.慢速.和反向动画按钮.效果非常漂亮.一起看下效果图: 在线预览   源码下载 实现的代码. html代码: ...

  5. jQuery关于mouseover和mouseenter的区别

    原生的mouseenter是dom3级的事件,对于jQuery等一些框架已经实现了这个事件.但是它到底跟mouseover有什么区别? jQuery在实现这两个事件的时候,mouseover支持事件冒 ...

  6. jQuery事件--mouseover()、mouseout()、mouseenter()和mouseleave()

       mouseover([[data],fn]) 概述 当鼠标指针位于元素上方时,会发生 mouseover 事件.该事件大多数时候会与 mouseout 事件一起使用 注释:与 mouseente ...

  7. jquery mouseout mouseover 多次执行

    用jquery,mouseout,mouseover,随着鼠标移动,事件被触发了多次(冒泡),换成js onmouseover,onmouseout也是一样.最终的解决办法是,用jquery,mous ...

  8. jQuery因mouseover,mouseout冒泡产生的闪烁问题

    由于浏览器的冒泡行为.造成如果在一个DIV元素上同时定义了mouseover,mouseout的时候,当鼠标移动到DIV中的child子元素的时候,就会同时执行了两个操作mouseover和mouse ...

  9. jQuery中mouseover和mouseout冒泡产生闪烁问题

    问题:在jQuery中,对元素绑定mouseover和mouseout事件时,每次移入移出该元素和子元素时,都会触发事件,从而会出现闪动的现象. 原因:浏览器的冒泡行为. 解决方案: 使用mousee ...

随机推荐

  1. [转] Splay Tree(伸展树)

    好久没写过了,比赛的时候就调了一个小时,差点悲剧,重新复习一下,觉得这个写的很不错.转自:here Splay Tree(伸展树) 二叉查找树(Binary Search Tree)能够支持多种动态集 ...

  2. Treeview控件的Node节点延迟加载

    Treeview控件是一个很常用的控件,用于展示资源或者组织结构的时候很方便,通常会在系统启动时进行资源的加载和节点目录的初始化,但在资源较多和层级较深的情况下,所有节点加载出来会耗费太多时间,影响体 ...

  3. 网站资料收集 主要查看js的学习部分

    1.Asp.Net MVC3.0基本的简单的可能都会用,更深入的使用还需加深研究,之后希望对MVC4.0和5.0进行对比学习,暂时看到@葡萄城控件技术团队博客的MVC5系列正在继续http://www ...

  4. 【转】禁止seekbar的拖动事件

    原文网址:http://blog.csdn.net/ansionnal/article/details/8229801 当然是可以的! 其实是 onTouchEvent 事件时,不让他传递事件就行了! ...

  5. 在ubuntu14.04上编译android4.2.2系统

    原创作品,转载请注明出处,严禁非法转载             copyright:weishusheng   2015.8.1 时下android系统非常流行,下面就来说一下,下载编译一个andro ...

  6. SQL Server使用规范(转)

    常见的字段类型选择 1.字符类型建议采用varchar/nvarchar数据类型 2.金额货币建议采用money数据类型 3.科学计数建议采用numeric数据类型 4.自增长标识建议采用bigint ...

  7. 【转】tomcat下jndi的三种配置方式

    jndi(Java Naming and Directory Interface,Java命名和目录接口)是一组在Java应用中访问命名和目录服务的API.命名服务将名称和对象联系起来,使得我们可以用 ...

  8. web前端优化-温故知新系列(1)

    有关web前端优化的博文,博客园中有许多网友的博客中都有介绍,而且详细.精准.楼主打算写这个博客,算是对自己一年工作来的一个总结和积累有些知识从别的地方拷贝过来的,但是都审查过. 引言: 1. 慢的页 ...

  9. 常用ping服务列表

    以下是收集的ping服务器. ping是基于XML_RPC标准协议的更新通告服务,是用于blog在内容更新时通知博客搜索引擎及时进行抓取.更新的方式.博客搜索引擎在成功接受到ping以后,会立刻进行抓 ...

  10. List<HashMap>和HashMap

      例如select查询出的是学号.姓名,比如查出符合条件的是学号是0810的小红,学号是0811的小明,组织起来如下:  list.add(hashmap1);list.add(hashmap2); ...