Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image ExtJS4-工具栏中的图像是否有与xtype=tbtext等效的文本?_Image_Extjs4_Toolbar - Fatal编程技术网

Image ExtJS4-工具栏中的图像是否有与xtype=tbtext等效的文本?

Image ExtJS4-工具栏中的图像是否有与xtype=tbtext等效的文本?,image,extjs4,toolbar,Image,Extjs4,Toolbar,我希望能够向没有工具栏按钮行为的工具栏(公司徽标)添加一个朴素的图像。您可以使用xtype tbtext以这种方式添加文本。有像tbimage这样的东西吗 如果我尝试一个图像按钮,有两个问题-你得到按钮的行为(鼠标悬停,点击等)和图像被裁剪到16x16 我试过这个: xtype: 'button', cls: 'logoImage' 但这只适用于firefox和chrome,而不适用于IE 是否有向工具栏添加图像的首选方法?以下是在工具栏上显示图像的方法: { xtype: 'tbte

我希望能够向没有工具栏按钮行为的工具栏(公司徽标)添加一个朴素的图像。您可以使用xtype tbtext以这种方式添加文本。有像tbimage这样的东西吗

如果我尝试一个图像按钮,有两个问题-你得到按钮的行为(鼠标悬停,点击等)和图像被裁剪到16x16

我试过这个:

xtype: 'button',
cls: 'logoImage'
但这只适用于firefox和chrome,而不适用于IE


是否有向工具栏添加图像的首选方法?

以下是在工具栏上显示图像的方法:

{
    xtype: 'tbtext',
    text:'<div style="height:16px;width:48px;background: url(\'resources/img/logo_small.png\')" align="center"></div>'
}
{
xtype:'tbtext',
文本:“”
}

由于您使用的是tbtext,因此图像不会显示为按钮。

以下是在工具栏上显示图像的方法:

{
    xtype: 'tbtext',
    text:'<div style="height:16px;width:48px;background: url(\'resources/img/logo_small.png\')" align="center"></div>'
}
{
xtype:'tbtext',
文本:“”
}
由于您使用的是tbtext,因此图像不会显示为按钮