首页 >
with(dEl.style){ backgroundRepeat = sRepeat; backgroundImage = ‘url(‘ + sDataUrl + ‘)’; backgroundColor = sColor2; }; } }else if(p_isIE){
p_dCanvas = p_useCanvas = p_dCtx = null; return function (dEl , sColor1 , sColor2 , bRepeatY){ if(typeof(dEl) == ‘string’) dEl = document.getElementById(dEl); if(!dEl) return false; dEl.style.zoom = 1; var sF = dEl.currentStyle.filter; dEl.style.filter += ‘ ‘ + [‘progid:DXImageTransform.Microsoft.gradient( GradientType=’, +(!!bRepeatY ),’,enabled=true,startColorstr=’,sColor1,’, endColorstr=’,sColor2,’)’].join(”); };
}else{ p_dCanvas = p_useCanvas = p_dCtx = null; return function(dEl , sColor1 , sColor2 ){
if(typeof(dEl) == ‘string’) dEl = document.getElementById(dEl); if(!dEl) return false; with(dEl.style){ backgroundColor = sColor2; }; } } })();
JS和CSS实现渐变背景特效的代码 | JS和CSS实现渐变背景特效的代码 ...
css网页头部文字 |css3 文字逐个显示 | css网页头部文字 |css3 文字逐个显示 ...
css3中 用法总结 |css设置文字半透明 | css3中 用法总结 |css设置文字半透明 ...