先看看效果图:
xml/html code复制内容到剪贴板
- <!doctype html>
- <html>
- <head>
- <style>
- body {margin:25px;}
- div.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;
- }
- div.container {
- text-align: center;
- padding: 10px 20px;
- }
- </style>
- </head>
- <body>
- <h2>响应式卡片</h2>
- <div class="polaroid">
- <img src="rock600x400.jpg" alt="norway" style="width:100%">
- <div class="container">
- <p>the troll's tongue in hardanger, norway</p>
- </div>
- </div>
- </body>
- </html>
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!
网友评论