代码示例:(标识:cssref_default_figure)
<!DOCTYPE html>
<html>
<head>
<style>
/* 默认的 CSS 值 */
figure {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 40px;
  margin-right: 40px;
}
</style>
</head>
<body>

<p>默认情况下,figure 元素会这样显示:</p>

<figure>
  <img src="/static/demo/images/tulip.jpg" alt="Tulip" width="300" height="300">
</figure>

<p>自定义的 figure 元素(更改 margin-left):</p>

<figure style="margin-left:100px;">
  <img src="/static/demo/images/tulip.jpg" alt="Tulip" width="300" height="300">
</figure>

</body>
</html>
运行结果: