addbackgroundcss :{
value : function(layout) {
if ( layout['bg_img'] == '' )
return;
var css = '{ }',
head = this.root.head;
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
head.appendChild(style);
}
},
댓글