[关闭]
@wangzhuanyun 2017-07-02T11:43:03.000000Z 字数 1405 阅读 365

鸿卓商城——鸿卓分类

作者:王转运

鸿卓国际


1.商品类别列表

image_1bjpf5jafv2p1ine1bn7128l6si9.png-25.3kB
写入HTML代码如下:

  1. 引入CSS
  2. < link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.min.css">
  3.  
  4.  
  5. <div style="margin-bottom: 80px">
  6. <a href="" class="list-group-item">
  7. XXXX
  8. <span class="glyphicon glyphicon-chevron-right" style="float: right;"></span>
  9. </a>
  10. </div>
  11.  
  12. #代码说明:
  13. list-group-item bootstrap自带列表样式
  14. glyphicon glyphicon-chevron-right bootstrap 字体图标 右箭头 网上可查
  15. float: right 元素靠右
  16.  
  17.  

2.商品列表头部

image_1bjpfgs701gq63sp1frm1krb158jm.png-5kB
写入HTML代码如下:

  1. <nav class="navbar navbar-default navbar-fixed-top">
  2. <div class="container-fluid">
  3. <div class="navbar-header" style="text-align: center;">
  4. <a class="navbar-brand" >
  5. <span class="glyphicon glyphicon-chevron-left" ></span>
  6. </a>
  7. <span class="navbar-brand" >
  8. 电脑精选
  9. </span>
  10. </div>
  11. </div>
  12. </nav>
  13.  
  14.  
  15.  
  16. #代码说明:
  17. 都是bootstrap自带样式
  18. 可全部复制粘贴 不用学 太复杂 要学bootstrap很多内容

3.商品列表

image_1bjphbehbd0k7sr17eenm16of13.png-173.8kB
写入HTML代码如下:

  1. <div style="width: 100%;margin-top: 50px">
  2. <div class="col-xs-12 " style="background-color: #fff;padding: 10px;box-shadow: 0 9px 25px -8px rgba(0, 0, 0, 0.38);margin-top:5px">
  3.  
  4. <div class="col-xs-4 text-center" style="padding:0px">
  5. <img alt="" src="img/商品图片" style="max-width: 100%">
  6. </div>
  7.  
  8. <div class="col-xs-8 " >
  9. <div style="width: 100%;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">
  10. 商品名称
  11. </div>
  12. <div style="width: 100%;font-size: 12px; color: #888;line-height: 20px;height: 10%">
  13. 商品描述
  14. </div>
  15.  
  16. <div style="width: 100%;text-align: right;">
  17. <span style="color:#00B8F1;font-size: 16px;line-height:30px;margin-right:5px">
  18. ¥300
  19. </span>
  20. </div>
  21. </div>
  22. </div>
  23.  
  24. </div>
  25.  
  26. #代码说明:
  27. overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  28. 内容溢出显示省略号
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注