[关闭]
@wangzhuanyun 2019-12-02T03:24:10.000000Z 字数 2070 阅读 454

鸿卓商城——商品详情

作者:王转运

鸿卓国际


引入CSS:

  1. <link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.min.css">

1.底部菜单

image_1bk1qbto0udh1htvdhqe5spp5n.png-11.7kB

写入HTML代码如下:

  1. 重新写样式:
  2. .nav {
  3. background: #ffffff;
  4. padding: 5px 0 6px 0;
  5. width: 100%;
  6. position: fixed;
  7. left: 0;
  8. bottom: 0;
  9. z-index: 100;
  10. }
  11.  
  12.  
  13. <div class="nav" style="padding:0px;">
  14. <div style="float:left;width:50%;font-size: 20px;text-align: center;padding-top:8px">
  15. 总计:<span style="color: #00B8F1">¥300<span>
  16. </div>
  17. <div style="width:50%;float:left;text-align: center;background-color: #F0415E;color: #fff;padding: 15px">
  18. 去付款
  19. </div>
  20. </div>
  21.  
  22.  

2.收货地址

image_1bk1pv162e4saj417kabb31fh757.png-25.5kB

写入HTML代码如下:

  1. <div class="col-xs-12 " style="background-color: #fff;padding: 10px 10px 0px 10px;margin:5px 0px">
  2. <div class="col-xs-6">收货人名字</div>
  3. <div class="col-xs-6">电话<span style="float: right;" class="glyphicon glyphicon-chevron-right"></span></div>
  4. <div class="col-xs-4">收货地址:</div>
  5. <div class="col-xs-8">地址</div>
  6. <div class="col-xs-12"><img src="img/interval.png" style="max-width: 100%"></div>
  7.  
  8. </div>
  9.  
  10. #代码说明:
  11. 添加IDV容器
  12. <div style="width: 100%;height:auto;margin-top: 50px">
  13. <!--将底部菜单除外的代码放入此容器中-->
  14. </div>

3.引入轮播图插件

引入相应的JS与CSS后 写入HTML代码如下:

  1. <div class="WSCSlideWrapper" style="height: 60%">
  2. <div class="WSCSlide WSCSlideTransition">
  3. <img class="WSCSlide_img" src="img/商品图片" style="max-width: 100%;" />
  4.  
  5. </div>
  6. <div class="WSCSlideStatus"></div>
  7. </div>
  8.  
  9. #代码说明:
  10. max-width: 100% 设置图片最大宽度为100%
  11.  
  12. <script type="text/javascript" src="js/jquery.js"></script>
  13. <script type="text/javascript" src="js/lunbo.js"></script>
  14. 以上两行JS 请放到<body>标签后
  15.  
  16. 代码放入后出现问题解决方式:
  17. 添加IDV容器
  18. <div style="width: 100%;height:auto;margin-top: 50px">
  19. <!--将底部菜单除外的代码放入此容器中-->
  20. </div>

4.产品介绍

image_1bk1pbm1m76s6bg15gha2d122u3g.png-31.3kB
写入HTML代码如下:

  1. <div class="col-xs-12 " style="margin-top: 5px">
  2. <div style="font-size: 18px;color: #000">商品名称</div>
  3. <div style="font-size: 12px;color: #888;line-height: 20px">商品简介</div>
  4. <div style="font-size: 18px;color: #00B8F1"><span>商品价格</span></div>
  5. </div>
  6.  
  7.  

5.文图详情

image_1bk1pcepb1bob16ot1h4u1mkfvvn3t.png-394.7kB
写入HTML代码如下:

  1. <table class="table" style="margin-bottom: 5px;">
  2. <tr >
  3. <td style="width: 22px;padding:15px 0px">
  4. <img alt="" src="img/dian.png" width="20px">
  5. </td>
  6. <td style="width: 72px;padding:15px 0px;">文图详情</td>
  7. <td>
  8.  
  9. </td>
  10. </tr>
  11.  
  12. </table>
  13.  
  14. <div style="margin-bottom: 80px;width: 100%;height: auto;">
  15. <!--放入文图详情内容 可从富文本编辑器中读取为HTML放入 暂时可以放入一个img -->
  16. </div>
  17.  
  18. #代码说明:
  19. class="table"自带下边框
  20. 空的DIV用于撑起后半部分
  21.  
  22.  
  23.  
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注