早睡早起,方能养生
Sleep early rise early, way to keep healthy

HTML中如何使 figure 标签中的内容居中显示?

super
2022-02-21 14:54
views 2384

figure标签中的内容居中显示:

 

figure {
    margin: auto;
}

 

Tip:figure标签的默认宽度为100%

 

figure默认CSS设置

 

figure {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 40px;
  margin-right: 40px;
}


分享
0 条讨论
top