- <!DOCTYPE html>
- <html>
- <head>
- <style>
- body {
- background-color: #f4f4f4;
- }
- .box {
- background-color: #fff;
- margin: 2%;
- padding: 5px 25px;
- width: 240px;
- height: 210px;
- border: 2px solid #ccc;
- border-radius: 10px 10px;
- font-family: Arial, sans-serif;
- }
- h2{
- font-size: 30px;
- }
- p{
- font-size: 22px;
- }
- .boxcontainer {
- display: inline;
- }
- </style>
- </head>
- <body>
- <div class="boxcontainer">
- <div class="box">
- <h2>積點漢堡</h2>
- <p>100%純牛肉,新鮮蔬菜</p>
- <p style="font-weight: bold; color: #e74c3c;">$8.99</p>
- </div>
- <div class="box">
- <h2>積點漢堡</h2>
- <p>100%純牛肉,新鮮蔬菜</p>
- <p style="font-weight: bold; color: #e74c3c;">$8.99</p>
- </div>
- <div class="box">
- <h2>積點漢堡</h2>
- <p>100%純牛肉,新鮮蔬菜</p>
- <p style="font-weight: bold; color: #e74c3c;">$8.99</p>
- </div>
- <div class="box">
- <h2>積點漢堡</h2>
- <p>100%純牛肉,新鮮蔬菜</p>
- <p style="font-weight: bold; color: #e74c3c;">$8.99</p>
- </div>
- </div>
- </body>
- </html>
複製代碼 |