html – 如何在extjs按钮中居中图标?

html – 如何在extjs按钮中居中图标?,第1张

概述我有一个简单的按钮,但我无法使图标居中. { xtype: 'button', width: 150, height: 150, cls: 'startbutton'} CSS: .startbutton { background-image: url(Camera.png) !important;} 此图像为72×72像素. 我想,你需要 backg 我有一个简单的按钮,但我无法使图标居中.

{    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按钮中居中图标?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1077230.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存