IE6.0 不支持LI:HOVER的解决方法
来源:互联网 发布:河南省软件协会 编辑:程序博客网 时间:2024/05/01 01:06
js:(document.getElementById 同时改 ID)
<script language="javas
stuHover = function() {
var cssRule;
var newSelector;
for (var i = 0; i < document.styleSheets.length; i++)
for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
{
cssRule = document.styleSheets[i].rules[x];
if (cssRule.selectorText.indexOf("LI:hover") != -1)
{
newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
}
}
var getElm = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<getElm.length; i++) {
getElm[i].on
this.className+=" iehover";
}
getElm[i].on
this.className=this.className.replace(new RegExp(" iehover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("on
</script>
id
<div id="nav">
<ul><li>让IE6支持LI:HOVER的JS代码</li></ul>
</div>
- IE6.0 不支持LI:HOVER的解决方法
- IE6.0 不支持LI:HOVER的解决方法
- IE6不支持hover的解决方法
- IE6不支持hover解决方法
- JavaScript 解决 IE6 不支持 li:hover 的方法
- 解决IE6不支持li:hover鼠标经过的效果
- li:hover在IE6下的解决办法
- 完美解决IE6不支持hover的方法
- IE6不支持hover解决方案
- IE6 li a:hover position
- 解决低版本ie下li:hover不支持的问题
- ie6中hover无效的解决方法
- IE6中不支持hover focus伪类的解决办法
- 解决 div:hover在IE6不支持的方案
- 解决ie6不支持:hover、属性选择器等问题的方法
- ie6下不支持png格式的解决方法
- IE6不支持position:fixed的解决方法
- IE6不支持css position:fixed的解决方法
- 吃个饭也不容易
- UrlRewriteFilter美化器的使用方法
- 如何用js获取URL参数
- Session学习
- css中中文字体(font-family)列表
- IE6.0 不支持LI:HOVER的解决方法
- Poj 2359 Questions (约瑟夫环)
- ajax读取本地xml文件要注意的地方
- 【Android面试】Android面试题集锦
- DirectSound应用,播放wav文件
- error: void value not ignored as it ought to be
- 从五个方面下手,彻底解决客户需求难题
- LeetCode Binary Tree Preorder Traversal
- LCD参数