ExtJs4.1:设置panel的背景图片

Ext.define('MyApp.view.MyViewport_1', {
    extend: 'Ext.container.Viewport',

    layout: {
        type: 'border'
    },

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'panel',
                    region: 'center',
                    layout: {
                        type: 'absolute'
                    },
					//设置背景图片
                    bodyStyle: {
						//background: '#ffc',
						background: 'url(http://localhost/T0115/app/view/1.jpg) no-repeat #00FFFF',
						padding: '10px'
					},
                    title: 'My Panel'
                }
            ]
        });

        me.callParent(arguments);
    }

});


 

你可能感兴趣的:(ExtJs,ExtJs,ExtJs,ExtJs,ExtJs,背景图片,Panel,Panel)