首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何使用CSS设计ExtJS容器?

如何使用CSS设计ExtJS容器?
EN

Stack Overflow用户
提问于 2018-08-02 22:35:44
回答 2查看 27关注 0票数 0

我使用了clsbodyClscomponentClsExtJS属性,但没有得到结果。

例如:的

Ext.create('Ext.form.Panel', {
    renderTo: document.body,
    title: 'User Form',
    height: 350,
    width: 300,
    cls: 'form',
    bodyPadding: 10,
    defaultType: 'textfield',
    items: [{
        fieldLabel: 'First Name',
        name: 'firstName'
    }, {
        fieldLabel: 'Last Name',
        name: 'lastName'
    }, {
        xtype: 'datefield',
        fieldLabel: 'Date of Birth',
        name: 'birthDate'
    }]
});

现在CSS:

.form {
    background-color:orange !important;
}

我想得到橙色的背景,但我没有得到我想要的结果。

如有任何帮助,我将不胜感激。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51656248

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档