做了个项目,结构很简单

<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. shell 全局和局部变量

    /******************************************************************** * shell 全局和局部变量 * 声明: * 到目前为止, ...

  2. listview使用总结

    1. android给listview的item设定高度 原文网址:http://blog.csdn.net/l_serein/article/details/7403992 在item的layout ...

  3. 【转】Angular运行原理揭秘 Part 1

    当你用AngularJS写的应用越多, 你会越发的觉得它相当神奇. 之前我用AngularJS实现了相当多酷炫的效果, 所以我决定去看看它的源码, 我想这样也许我能知道它的原理. 下面是我从源码中找到 ...

  4. Python中,如何初始化不同的变量类型为空值

    参考文章  Python中,如何初始化不同的变量类型为空值 常见的数字,字符,很简单,不多解释. 列表List的其值是[x,y,z]的形式 字典Dictionary的值是{x:a, y:b, z:c} ...

  5. [Bhatia.Matrix Analysis.Solutions to Exercises and Problems]ExI.4.6

    Let $A$ and $B$ be two matrices (not necessarily of the same size). Relative to the lexicographicall ...

  6. ln (link)命令

    ln是linux中又一个非常重要命令,它的功能是为某一个文件在另外一个位置建立一个同步的链接.当我们需要在不同的目录,用到相同的文件时,我们不需要在每一个需要的目录下都放一个必须相同的文件,我们只要在 ...

  7. 《Python基础教程(第二版)》学习笔记 -> 第二章 列表和元组

    本章将引入一个新的概念:数据结构. 数据结构是通过某种方式阻止在一起的数据元素的集合,这些数据元素可以是数字或者字符,设置可以是其他数据结构. Python中,最基本的数据结构是序列(Sequence ...

  8. 备份 VPS 上得内容到国内

    起源: 最近毕设快开题了,校园网进入了收费测试的阶段,得把车辆的数据库 down 下来.发现国内 down 的速度真心慢呢.于是乎使用了在美国的 VPS 来 down,果不其然,30M 左右的下载速度 ...

  9. linux扩展权限

    扩展权限包括s,g,t 对于创建文件或文件夹由umask值来决定共默认权限 普通用户默认是0002 root有户是0022 目录的默认权限是777-umask(普通用户775 root是755) 文件 ...

  10. 单点登录sso规范

    http://jasig.github.io/cas/development/protocol/CAS-Protocol-Specification.html