手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >通用于ie和firefox的函数 GetCurrentStyle (obj, prop)
通用于ie和firefox的函数 GetCurrentStyle (obj, prop)
摘要:functionGetCurrentStyle(obj,prop){if(obj.currentStyle){returnobj.curre...

function GetCurrentStyle (obj, prop) { if (obj.currentStyle) { return obj.currentStyle[prop]; } else if (window.getComputedStyle) { prop = prop.replace (/([A-Z])/g, "-$1"); prop = prop.toLowerCase (); return window.getComputedStyle (obj, "").getPropertyValue(prop); } return null; }

代码来自于http://tvweek.com/javascripts/default.js

【通用于ie和firefox的函数 GetCurrentStyle (obj, prop)】相关文章:

点此处秒后立即下载

Java语言概述

用户输入密码的强度

javascript匹配车牌号正则表达式

IE浏览器下PNG相关功能

js获取变量

JQuery中DOM实现事件移除的方法

基于jQuery实现的无刷新表格分页实例

浅谈jQuery中replace()方法

在HTML中插入JavaScript代码的示例

精品推荐
分类导航