做了个项目,结构很简单

<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. ZOJ 2676 Network Wars ★(最小割算法介绍 && 01分数规划)

    [题意]给出一个带权无向图,求割集,且割集的平均边权最小. [分析] 先尝试着用更一般的形式重新叙述本问题.设向量w表示边的权值,令向量c=(1, 1, 1, --, 1)表示选边的代价,于是原问题等 ...

  2. postgreSQL数据类型转换字符串和数值

    1.将数值转成字符串类型  方法1:调用to_char(int, text)函数,int为要转换值,text为数值格式化模式,其中模式描述为: 模式 描述 9 带有指定数值位数的值 0 带前导零的值 ...

  3. Entity Framework Code First级联删除

    如果我们要到一对主从表增加级联删除,则要在主表中的引用属性上增加Required关键字,如: public class Destination { public int DestinationId { ...

  4. 【原创】Linux下使用SecureCRT的方法:破解&编码

    1.下载SecureCRT软件 ubuntu64位:http://download.csdn.net/detail/cobps/7941145 ubuntu32位:http://download.cs ...

  5. 浏览器插件 - 通用注入模版JS

    //TIP:先通过Tampermonkey编写为可用脚本,再套用此通用模版,再拖到Chrome安装为扩展即可. /* 通用注入原型3:*/ switch (window.location.pathna ...

  6. uvalive 3890 Most Distant Point from the Sea

    题意:求一个凸多边形中一点到边的最大距离. 思路:转换成在多边形内部,到每边距离为d的直线所围成的内多边形是否存在.也就是,二分距离+半平面交. #include<cstdio> #inc ...

  7. android NDK 实用学习(二)-java端对象成员赋值和获取对象成员值

    1,关于java端类及接口定义请参考: android NDK 实用学习-获取java端类及其类变量 2,对传过来的参数进行赋值: 对bool类型成员进行赋值  env->SetBooleanF ...

  8. 【转载】va_list 可变参数 简介 va_copy vprintf

    [说明]本文转载自 smart 的文章 http://blog.sina.com.cn/s/blog_590be5290100qhxr.html  及百度百科 va_list是一个宏,由va_star ...

  9. 【bzoj2440】完全平方数

    题意: 求第n个不为完全平方数倍数的数 题解: 网上有人说答案不会超过2n (求证0 0?) 竟然不超过2n 那么很明显就是用二分做了 二分判定就是要求小于等于n的合法的数的个数 不难发现一个数若为完 ...

  10. [转]各种字符串Hash函数比较

    转自:https://www.byvoid.com/zht/blog/string-hash-compare 常用的字符串Hash函数还有ELFHash,APHash等等,都是十分简单有效的方法.这些 ...