1.column Layout 列布局
在子元素中指定使用columnWidth或width来指定子元素所占的列宽度。
columnWidth表示使用百分比的形式指定列宽度。
width则是使用绝对象素的方式指定列宽度,在实际应用中可以混合使用两种方式。
Ext.onReady(function(){
var window = new Ext.Window({
layout: "column",
title: "Hello World",
id: "helloWorldWindow",
bodyStyle: "padding:10px;",
width: 550,
height: 300,
x: 100,
y: 100,
items: [
{
columnWidth: .6,
baseCls: "x-plain",
frame: true,
layout: "form",
bodyStyle: "padding:5px;",
items: [
{xtype: "textfield", fieldLabel: "UserName"},
{xtype: "textfield", fieldLabel: "Age"}
]
},
{
columnWidth: .3,
baseCls: "x-plain",
bodyStyle: "padding:5px;",
items: [
{xtype: "textarea"}
]
},
{
columnWidth: .1,
baseCls: "x-plain",
bodyStyle: "padding:5px;",
layout: "form",
items: [
{
xtype: "button",
text: "Ok",
handler: function() {
alert("OK");
}
},
{
xtype: "button",
text: "Cancel",
handler: function() {
alert("Cancel");
}
}
]
}
]
});
window.render(Ext.getDom("tt"));
window.show();
});
2.fit Layout
Fit布局,子元素将自动填满整个父容器(对元素设置宽度无效),如果容器组件中有多个子元素,则只
会显示第一个子元素。
Ext.onReady(
function(){
var win = new Ext.Window({
title: "Hello World",
renderTo: Ext.getDom("tt
详细解决方案
layout 总结
热度:67 发布时间:2024-01-18 07:45:13.0
相关解决方案
- import com.borland.jbcl.layout.解决办法
- Firefox下table-layout:fixed无效有关问题
- 图形格局-Layout 之js设计实现
- [Web Chart系列之三] 图形格局-Layout
- zend framework的主布局脚本 layout.pthml可以更改吗解决办法
- 十、Controlling Layout with CSS
- liferay css讲授之三 themes/相应风格/css/layout.css讲解
- CSS Layout Properties 格局属性
- ie layout zoom.height:1%解决思路
- 有人做过 dijit.layout.TabContainer里边套dojox.Grid的页面吗
- EXT格局 Layout
- 解决报表设置table-layout:fixed后单元格宽度设置无效的方法
- [Web Chart系列之三] 图形格局-Layout
- style="table-layout:fixed;"
- table-layout:fixed与auto与报表内换行
- Is this a bug of layout:accordion
- 格局(Layout)
- LearningExtJS_new 之 Layout 的运用学习(五)
- table-layout:fixed 解决chrome中不能设定表格固定宽度的有关问题
- layout:column 的小疑点
- jQuery EasyUI 汉语言API―Layout(Panel)
- ExtJS 中 layout 的几种格局风格
- import com.borland.jbcl.layout.解决方案
- org.jdesktop.layout does not exist编译异常
- 小弟我想找一个java的包,import com.borland.jbcl.layout.
- Android View深入学习(2),View的布局(Layout)过程
- layout cannot be resolved or is not a field,该如何处理
- 请教 ListView中列表项用的android.R.layout.simple_list_item_1 然后小弟我在代码中如何设置item中显示的字的颜色?
- 新建一个工程,res\layout\ 下没XML布局文件,求解答
- Android性能优化系列-Improving Layout Performance(4)