2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-08-23 00:52:45 -06:00

opacity for IE7/8

This commit is contained in:
peterd 2014-08-06 20:32:10 +02:00
parent 1ebfbef3c9
commit 954d8e294e
2 changed files with 7 additions and 2 deletions

View File

@ -330,7 +330,12 @@
replace('_bgs.png', !_isIE ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png').
replace('_icons.png', !_isIE ? urlData + _data._iconsPng : _options.imagePath + '_icons.png').
replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur').
replace('"Courier New",', !_isIE ? '' : '"Courier New",');
replace('"Courier New",', !_isIE ? '' : '"Courier New",').
replace(/opacity:(\d*\.*(\d+))/g, function($1, $2){
return _isIE ? '-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=' +
Math.round(+$2 * 100) + ')";filter: alpha(opacity=' + Math.round(+$2 * 100) + ')' :
'-moz-opacity: ' + $2 + '; -khtml-opacity: ' + $2 + '; opacity: ' + $2;
});
// style.appendChild(document.createTextNode(_data._cssFunc));
addStyleSheet(_data._cssMain);
}

View File

@ -293,7 +293,7 @@
filter: alpha(opacity=20);
-moz-opacity: 0.2;
-khtml-opacity: 0.2;
opacity: .2;
opacity: 0.2;
}
.alpha-bg-b .cp-memo {
background-color: #333;