zoukankan      html  css  js  c++  java
  • 微信小程序怎么做出前端table的效果

    wxml代码:

    <view class="container">
        <view class="table">
            <view class="tr">
                <view class="th">标题1</view>
                <view class="th">标题2</view>
                <view class="th">标题3</view>
                <view class="th">标题4</view>
                <view class="th">标题5</view>
            </view>
            <view class="tr" wx:for="{{5}}">
                <view class="td">{{内容}}</view>
                <view class="td">{{内容}}</view>
                <view class="td">{{内容}}</view>
                <view class="td">{{内容}}</view>
                <view class="td">{{内容}}</view>
            </view>
        </view>
    </view>
     
    wxss代码:

    /* pages/table/table.wxss */
    page {
      font-size: 14px;
      color: #333
    }
    .table {
      border:1px solid #dadada;
      border-right: 0;
      border-bottom: 0;
       98%;
    }
    .tr {
       100%;
      display: flex;
      justify-content: space-between;
    }
    .th,.td {
      padding: 10px;
      border-bottom: 1px solid #dadada;
      border-right: 1px solid #dadada;
      text-align: center;
      100%
    }
    .th {
      font-weight: 400;
      background-color: #dadada
    }

  • 相关阅读:
    2021.3.3
    2021.3.2
    2021.3.1
    2021.2.28(每周总结)
    2021.2.27
    2021.2.26
    2021.2.25
    2021.2.23
    Redis系统学习之五大基本数据类型(List(列表))
    Redis系统学习之五大基本数据类型(String(字符串))
  • 原文地址:https://www.cnblogs.com/h5kang/p/6247603.html
Copyright © 2011-2022 走看看