原文来自:http://jingyan.baidu.com/article/020278118324f51bcc9ce581.html

1.文字居中

  设置:height:105px;line-height:105px; 可垂直居中

  设置:text-align:center;可实现水平居中

2.图片按钮文本框的居中

  除了设置问题居中的属性外,还要设置

  display: table-cell; vertical-align:middle;

相关文章:

  • 2021-12-10
  • 2021-12-19
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2021-12-20
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-10-26
  • 2022-12-23
相关资源
相似解决方案