更改按钮's颜色Extjs 3.4

Change button's color Extjs 3.4

本文关键字:颜色 Extjs 按钮      更新时间:2023-09-26

我有一个带有cls : 'pdf'的按钮。我只想更改背景颜色(然后使其大于比例:如果可能的话,"大"?)我试过了:

.pdf
{
background-image:none !important;
background-color:#00cc99 !important;
}
.pdf div a span
{
color: black !important;
}
.pdf .x-btn-inner
{
color: black !important;
 background-image: none !important;
 border-color: black !important;
 border-top-color: black !important;
}
.pdf
{
background-color : black !important;
}

但什么都没用。我读到可以通过修改gif按钮来更改它,但还有其他方法吗,只使用css?

你试过这个吗?

.pdf .x-btn-button .x-btn-inner {
  background-color: #00cc99;
}

我用找到了解决方案

.pdf  .x-btn-mc
{
background-image : none !important;
background-color : #00cc99 !important;
}

我猜".x-btn-mc"是特定于extjs 3.4 的

以下是如何更改按钮颜色的正确答案:http://www.sencha.com/forum/showthread.php?21904-按钮颜色&p=388267&viewfull=1#post388267

.pdf .x-btn-tl, .pdf .x-btn-tr, .pdf .x-btn-tc, .pdf .x-btn-ml, 
.pdf .x-btn-mr, .pdf .x-btn-mc, .pdf .x-btn-bl, .pdf .x-btn-br, .pdf .x-btn-bc{
    background-image : none !important;
    background-color : #00cc99 !important;
}