no commit message
This commit is contained in:
+42
-2
@@ -5001,20 +5001,22 @@
|
|||||||
// 没有横杠就不进行字符串拆解
|
// 没有横杠就不进行字符串拆解
|
||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
if (!value && !isUndefined(key) && valType(key) == 'string') {
|
if (isUndefined(value)){
|
||||||
|
if (!isUndefined(key) && valType(key) == 'string') {
|
||||||
if (this.currentStyle) {
|
if (this.currentStyle) {
|
||||||
return this.currentStyle[key];
|
return this.currentStyle[key];
|
||||||
} else {
|
} else {
|
||||||
return document.defaultView.getComputedStyle(this, null)[key];
|
return document.defaultView.getComputedStyle(this, null)[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!value && !key) {
|
if (isUndefined(key)) {
|
||||||
if (this.currentStyle) {
|
if (this.currentStyle) {
|
||||||
return this.currentStyle;
|
return this.currentStyle;
|
||||||
} else {
|
} else {
|
||||||
return document.defaultView.getComputedStyle(this, null);
|
return document.defaultView.getComputedStyle(this, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// 当传进来的参数key不是一个对象,给节点添加css样式
|
// 当传进来的参数key不是一个对象,给节点添加css样式
|
||||||
if (valType(key) != 'object') {
|
if (valType(key) != 'object') {
|
||||||
var newKey = keyNew(key);
|
var newKey = keyNew(key);
|
||||||
@@ -5615,6 +5617,22 @@
|
|||||||
else{
|
else{
|
||||||
result=parseInt(vars);
|
result=parseInt(vars);
|
||||||
}
|
}
|
||||||
|
thisTemp.css('right','auto');
|
||||||
|
break;
|
||||||
|
case 'right':
|
||||||
|
if(!isUndefined(thisTemp.css('right'))){
|
||||||
|
current=parseInt(thisTemp.css('right'));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
current = CK.getWidth()-(thisTemp.offset()['left']-CK.offset()['left']+thisTemp.getWidth());
|
||||||
|
}
|
||||||
|
if (vars.substring(vars.length - 1, vars.length) == '%') {
|
||||||
|
result = parseInt(vars) * w * 0.01;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
result=parseInt(vars);
|
||||||
|
}
|
||||||
|
thisTemp.css('left','auto');
|
||||||
break;
|
break;
|
||||||
case 'top':
|
case 'top':
|
||||||
if(!isUndefined(thisTemp.css('top'))){
|
if(!isUndefined(thisTemp.css('top'))){
|
||||||
@@ -5629,6 +5647,22 @@
|
|||||||
else{
|
else{
|
||||||
result=parseInt(vars);
|
result=parseInt(vars);
|
||||||
}
|
}
|
||||||
|
thisTemp.css('bottom','auto');
|
||||||
|
break;
|
||||||
|
case 'bottom':
|
||||||
|
if(!isUndefined(thisTemp.css('bottom'))){
|
||||||
|
current=parseInt(thisTemp.css('bottom'));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
current = CK.getHeight()-(thisTemp.offset()['top']-CK.offset()['top']+thisTemp.getHeight());
|
||||||
|
}
|
||||||
|
if (vars.substring(vars.length - 1, vars.length) == '%') {
|
||||||
|
result = parseInt(vars) * h * 0.01;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
result=parseInt(vars);
|
||||||
|
}
|
||||||
|
thisTemp.css('top','auto');
|
||||||
break;
|
break;
|
||||||
case 'alpha':
|
case 'alpha':
|
||||||
if(!isUndefined(thisTemp.css('filter')) && thisTemp.css('filter')!='none'){
|
if(!isUndefined(thisTemp.css('filter')) && thisTemp.css('filter')!='none'){
|
||||||
@@ -5697,9 +5731,15 @@
|
|||||||
case 'left':
|
case 'left':
|
||||||
styleObj['left']=ap + 'px';
|
styleObj['left']=ap + 'px';
|
||||||
break;
|
break;
|
||||||
|
case 'right':
|
||||||
|
styleObj['right']=ap + 'px';
|
||||||
|
break;
|
||||||
case 'top':
|
case 'top':
|
||||||
styleObj['top']=ap + 'px';
|
styleObj['top']=ap + 'px';
|
||||||
break;
|
break;
|
||||||
|
case 'bottom':
|
||||||
|
styleObj['bottom']=ap + 'px';
|
||||||
|
break;
|
||||||
case 'alpha':
|
case 'alpha':
|
||||||
styleObj['filter']='alpha(opacity:' + ap*0.01 + ')';
|
styleObj['filter']='alpha(opacity:' + ap*0.01 + ')';
|
||||||
styleObj['opacity']=ap*0.01;
|
styleObj['opacity']=ap*0.01;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user