Let’s take a look at the renderings first:
##
<!DOCTYPE html> <html> <head> <style> body {margin:25px;} p.polaroid { width: 40%; 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; } p.container { text-align: center; padding: 10px 20px; } </style> </head> <body> <h2>响应式卡片</h2> <p class="polaroid"> <img src="rock600x400.jpg" alt="Norway" style="max-width:90%"> <p class="container"> <p>The Troll's tongue in Hardanger, Norway</p> </p> </p> </body> </html>