Ext.onReady(function() {
Ext.util.CSS.createStyleSheet( 'body {background-color:yellow;}', 'bodybackye');
alert('变黄');
//以下方法对IE无效
var elBody = Ext.select('body').item(0);
var el = elBody.createChild({
tag : 'style',
type : 'text/css',
html : 'body {background-color:red;}'
});
alert('变红');
}
);
[extjs3.4]添加css样式
猜你喜欢
转载自blog.csdn.net/wzp1986/article/details/41632087
今日推荐
周排行