• 微信小程序怎么做出前端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
    }

  • 相关阅读:
    Struts2-result配置结果视图
    Struts2 -action处理业务请求
    struts 2
    mvc模式
    vue之webpack安装配置vue
    vue之webpack
    文件上传
    LinkedList详解
    ArrayList详解
    HashMap详解
  • 原文地址:https://www.cnblogs.com/h5kang/p/6247603.html
Copyright © 2020-2023  润新知