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:
parent
1ebfbef3c9
commit
954d8e294e
@ -330,7 +330,12 @@
|
|||||||
replace('_bgs.png', !_isIE ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png').
|
replace('_bgs.png', !_isIE ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png').
|
||||||
replace('_icons.png', !_isIE ? urlData + _data._iconsPng : _options.imagePath + '_icons.png').
|
replace('_icons.png', !_isIE ? urlData + _data._iconsPng : _options.imagePath + '_icons.png').
|
||||||
replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur').
|
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));
|
// style.appendChild(document.createTextNode(_data._cssFunc));
|
||||||
addStyleSheet(_data._cssMain);
|
addStyleSheet(_data._cssMain);
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@
|
|||||||
filter: alpha(opacity=20);
|
filter: alpha(opacity=20);
|
||||||
-moz-opacity: 0.2;
|
-moz-opacity: 0.2;
|
||||||
-khtml-opacity: 0.2;
|
-khtml-opacity: 0.2;
|
||||||
opacity: .2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
.alpha-bg-b .cp-memo {
|
.alpha-bg-b .cp-memo {
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user