代码示例:(标识:css_ex_images_card)
<!DOCTYPE html>
<html>
<head>
<style>
body {margin:25px;}

div.polaroid {
  width: 80%;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin-bottom: 25px;
}

div.container {
  text-align: center;
  padding: 10px 20px;
}
</style>
</head>
<body>

<h1>响应式宝丽来图像 / 卡片</h1>

<div class="polaroid">
  <img src="/static/demo/images/tulip-yellow.jpg" alt="Tulip" style="width:100%">
  <div class="container">
  <p>黄色郁金香</p>
  </div>
</div>

<div class="polaroid">
  <img src="/static/demo/images/tulip-red.jpg" alt="Tulip" style="width:100%">
  <div class="container">
  <p>红色郁金香</p>
  </div>
</div>

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