function getsupportedprop(proparray){
var root=document.documentElement; //reference root element of document
for (var i=0; i<proparray.length; i++){ //loop through possible properties
if (proparray[i] in root.style){ //if property exists on element (value will be string, empty string if not set)
return proparray[i]; //return that string
}
}
}
var boxshadowprop=getsupportedprop([ 'OBoxShadow','WebkitTransform','MozTransform']);

最新文章

  1. canvas初探1
  2. 漫谈C语言结构体struct、公用体union空间占用
  3. sqlserver 中row_number,rank,dense_rank,ntile排名函数的用法
  4. 使用EntityFramework6连接MySql数据库
  5. 解决getOutputStream() has already been called for this response
  6. [nowCoder] 完全二叉树结点数
  7. Codeforces 55D Beautiful Number
  8. Oracle中的触发器
  9. Java面向对象程序设计--与C++对比说明:系列1(面向对象基础)
  10. CSS中的几个概念--------Day39
  11. MAC下安装MAMP的Mongodb
  12. 原生js选项卡
  13. dict的操作和三级菜单
  14. GitHub 系列之「Git速成」
  15. 弄清SDI显示工程中的每一个信号,每一个逻辑
  16. @JsonInclude注解,RestTemplate传输值为null的属性,利用FastJson将属性中有空值null的对象转化成Json字符串
  17. Matlab练习——素数查找
  18. ASP.NET webform多次提交表单问题
  19. Swift循环遍历集合方法
  20. 在android工程中,res目录下又有anim、drawable、layout、menu、raw、values和xml文件夹,分别用来保存?

热门文章

  1. Oracle数据库PL/SQL那点事情---修改过电脑的用户名
  2. maven工程下testng简单使用
  3. Mac 10.12安装图片标注工具PxCook
  4. wusir 线程间操作无效: 从不是创建控件“”的线程访问它 解决办法
  5. (转)CentOS 7 安装 Docker
  6. List的定制排序 包括使用lambda表达式来实现的方法
  7. EasyNet开源项目计划
  8. MongoDB的使用技巧(转)
  9. 13.Reflect
  10. Types方法之isSameType-isSuperType-isSubType