花店商城Flower Shop网站前端HTML页面模板源码

  • 4
    点赞
  • 38
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个简单的花店商城购物车页面HTML代码示例: ```html <!DOCTYPE html> <html> <head> <title>花店商城 - 购物车</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } header, footer { background-color: #f2f2f2; padding: 10px; text-align: center; } h1 { margin: 0; font-size: 36px; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { padding: 10px; text-align: left; border-bottom: 1px solid #ddd; } th { background-color: #f2f2f2; } .total { text-align: right; font-weight: bold; margin-top: 20px; } .checkout { display: block; margin-top: 20px; padding: 10px; background-color: #4CAF50; color: white; text-align: center; text-decoration: none; border-radius: 5px; font-weight: bold; } </style> </head> <body> <header> <h1>花店商城</h1> <p>购物车</p> </header> <table> <thead> <tr> <th>商品</th> <th>价格</th> <th>数量</th> <th>小计</th> </tr> </thead> <tbody> <tr> <td>玫瑰花束</td> <td>$39.99</td> <td>2</td> <td>$79.98</td> </tr> <tr> <td>百合花束</td> <td>$29.99</td> <td>1</td> <td>$29.99</td> </tr> </tbody> </table> <div class="total">总计:$109.97</div> <a href="#" class="checkout">结账</a> <footer> <p>版权所有 © 2021 花店商城</p> </footer> </body> </html> ``` 该代码使用了HTML5语法,并包含一个简单的表格来显示购物车中的商品信息。每个商品都有名称、价格、数量和小计字段。在表格下方,使用一个带有“结账”标签的链接来结束购物流程。整个页面还包含一个页眉和页脚来提供品牌标识和版权信息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值