{ xtype: 'button',wIDth: 150,height: 150,cls: 'startbutton'}
CSS:
.startbutton { background-image: url(Camera.png) !important;}
此图像为72×72像素.
解决方法 我想,你需要 background-position:.startbutton { background-position: center center; background-image: url(Camera.png) !important;}总结
以上是内存溢出为你收集整理的html – 如何在extjs按钮中居中图标?全部内容,希望文章能够帮你解决html – 如何在extjs按钮中居中图标?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)