var panel = new Ext.Panel(
{
id:'hwq',
renderTo:'div',
title:'Test',
html:"<div id='getValue'>hwq</div>"
});
Ext.fly(Ext.get("getValue").dom.id).applyStyles("background-color:#ff0000");
ExtJS面板与样式设置
本文介绍如何使用ExtJS创建面板并应用样式。通过实例展示了创建一个名为'hwq'的面板,设置其标题为'Test',并在面板内放置了一个带有特定ID的HTML元素。此外,还演示了如何通过Ext获取该元素并设置背景颜色。
var panel = new Ext.Panel(
{
id:'hwq',
renderTo:'div',
title:'Test',
html:"<div id='getValue'>hwq</div>"
});
Ext.fly(Ext.get("getValue").dom.id).applyStyles("background-color:#ff0000");

被折叠的 条评论
为什么被折叠?
