我需要帮助调整我的CSS按钮,它太长了

ffscu2ro  于 2022-11-26  发布在  其他
关注(0)|答案(2)|浏览(146)

I am having difficulties reducing the size of my css button. The margins are long, I keep trying to reduce it but it is not working

am46iovg

am46iovg1#

也许你应该添加显示风格?比如display: flex;你试过了?

r8uurelv

r8uurelv2#

css中的marigin不影响按钮大小,只影响按钮周围的区域。请尝试使用widthheight,例如width: 20px; height: 20px。如果这样做没有帮助,请尝试修改min-widthmin-heightmax-widthmax-height

相关问题