手机
当前位置:查字典教程网 >编程开发 >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)】相关文章:

让广告代码不再影响你的网页加载速度

jQuery获取上传文件的名称的正则表达式

网页中移动的广告效果 鼠标悬停

jQuery预加载图片常用方法

点此处秒后立即下载

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

JQuery中层次选择器用法实例详解

jQuery实现dialog设置focus焦点的方法

如何制作浮动广告

总结一些js自定义的函数

精品推荐
分类导航