如何设置button样式?

发布于 8 年前作者 fangguiying9316 次浏览最后编辑 8 年前来自 issues

想让绿色button的样式为正方形,并且居左,应该怎么处理?

5 回复
wei27
wei271 楼6 年前

css,请

--↓↓👍如果觉得有帮助就请点个【赞】吧~

juan54
juan542 楼6 年前

你好,请提供能复现问题的简单代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

--↓↓👍点赞是回答的动力哦

xiuying54
xiuying543 楼6 年前

  display: flex;

  flex-direction: column或者row;

  justify-content: center;

  align-items: center;

治疗一切居中

lei03
lei034 楼6 年前

display:flex改成inline-block试试

dsong
dsong5 楼6 年前

代码片段,给你改改