提交 c3099891 编写于 作者: Z zhuwenxuan

colorpicker

上级 3c93c644
......@@ -66,7 +66,8 @@
return;
}
this.getAdv().style.display=this.ishide?"block":"none";
obj.innerHTML = this.ishide?"收缩":"高级";
domUtils.removeClasses(obj,["arrow_down","arrow_up"]);
this.ishide?domUtils.addClass(obj,"arrow_up"):domUtils.addClass(obj,"arrow_down");
this.ishide = !this.ishide;
this.fireEvent("changeheight");
},
......@@ -283,7 +284,7 @@
}
html += '</tr></table>';
//高级按钮
html += '<span id="##_togglehandle" class="edui-colorpicker-advbtn" onclick="$$._onShowAdv(event, this);">高级</span>';
html += '<span id="##_togglehandle" class="edui-colorpicker-advbtn arrow_down" onclick="$$._onShowAdv(event, this);"></span>';
html += getAdvColorPicker();
html += '</div>';
return html;
......
......@@ -45,7 +45,13 @@
display: block;
text-align: center;
cursor: pointer;
height:18px;
height:20px;
}
.arrow_down{
background: white url('../images/arrow_down.png') no-repeat center;
}
.arrow_up{
background: white url('../images/arrow_up.png') no-repeat center;
}
/*高级的样式*/
.edui-colorpicker-adv{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册