簡體   English   中英

在extjs4 tbar按鈕中向左對齊文本

[英]left justify text in an extjs4 tbar button

我有以下tbar物品。 我試圖將按鈕內的文本左對齊。 但是我做不到。 有什么建議么?

                        {
                            tbar: [
                                {
                                    xtype: 'button',
                                    text: 'Home',
                                    width: 120,
                                    align:'left',   
                                    handler: function() {
                                        document.location.href = BasePath; 
                                    }
                                }                                   

                            ]
                        },
                        {
                            tbar: [
                                {
                                    xtype: 'button',
                                    text: 'View Transfer Numbers',
                                    width: 120,                                         
                                    handler: function() {
                                        document.location.href =BasePath+'transfer'; 
                                    }
                                }                                   

                            ]
                        }

textAlign:字符串

這就是我上面為獲得解決方案所做的

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM