📜  css center position absolute - CSS 代码示例

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

代码示例6
#content {
  position: absolute; 
  left: 0; 
  right: 0; 
  margin-left: auto; 
  margin-right: auto; 
  width: 100px; /* Need a specific value to work */
}