Ext

    xiaoxiao2023-03-24  2

    Ext.onReady(function(){ Ext.create('Ext.window.Window', { title: '我是title', height: 200, //Number型 也可以是字符串类型 width:'60%' width: 400, layout: 'fit', //constrain: true, //闲置窗口不超出浏览器 constrainHeader:true, //标题不能超出浏览器边界 modal: true, //设置模态窗口 plain:true, //窗口设置透明背景 //icon:'', //图标路径 //iconCls:'', //图标样式 x:50, //设置窗口左上角位置 (xy都是小写) y:50, html:'<div style = "height:100px">我是第一个div</div><div style = "height:200px">我是第一个div</div>', autoScroll:true //显示滚动条 /* items: { // Let's put an empty grid in just to illustrate fit layout xtype: 'grid', border: false, columns: [{header: 'World'}], // One header just for show. There's no data, store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store }*/ }).show(); })
    转载请注明原文地址: https://ju.6miu.com/read-1201242.html
    最新回复(0)