改变元素透明度opacity
opacity: function(elem, val) { var setting = arguments.length > 1; if ("opacity" in elem.style) { return setting ? elem.style["opacity"] = val: elem.style["opacity"]; } else { // if IE if (elem.filters && elem.filters.alpha) { return setting ? elem.filters.alpha["opacity"] = val * 100 : elem.filters.alpha["opacity"] / 100; } } }