类选择器兼容性 getbyclass()类选择器,在IE8及以下均不可用. // 类选择器的兼容性 function getbyclass(parentName,Name){ var parentName=document.getElementById(parentName); // 通过标签名通配符选择所有父容器内的元素 var all=parentName.getElementsByTagName("*"); console.log(all); // 创建一个新数组用来接收body…
一句话搞定透明背景! .transparent_class { filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; } UPDATE: I wanted to pull this post out of the archives and update it a bit because it there seems to be a good amount of interest in this…