📜  在屏幕中间居中 html css 代码示例

📅  最后修改于: 2022-03-11 14:47:58.530000             🧑  作者: Mango

代码示例1
.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
}