永发信息网

ext中怎么设置Button大小

答案:2  悬赏:60  手机版
解决时间 2021-03-03 09:35
  • 提问者网友:一抹荒凉废墟
  • 2021-03-02 13:34
var buttons2 = Ext.create('Ext.Button', {<br>//  style :"width:50px;height:70px;",<br>text : '文档',<br>iconAlign : 'top',<br>icon : 'images/wd.jpg',<br>//renderTo : Ext.getBody(),<br>listeners : {<br>click : function() {<br>// this == the button, as we are in the local scope<br>//this.setText('I was clicked!');<br>},<br>mouseover : function() {<br>// set a new config which says we moused over, if not already set<br>if (!this.mousedOver) {<br>this.mousedOver = true;<br>//alert('You moused over a button!\n\nI wont do this again.');<br>}<br>}<br>}<br>});
最佳答案
  • 五星知识达人网友:醉吻情书
  • 2021-03-02 14:01
scale属性
scale: 'medium' 或者 scale: 'large' 试试。
全部回答
  • 1楼网友:笑迎怀羞
  • 2021-03-02 15:07
我暂时保留我的看法!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯