c s s代码

<style>
 
    /*日期选择器去除秒**/
    .layui-laydate-content>.layui-laydate-list {
        padding-bottom: 0px;
        overflow: hidden;
    }
    .layui-laydate-content>.layui-laydate-list>li{
        width:50%
    }

    .merge-box .scrollbox .merge-list {
        padding-bottom: 5px;
    }

</style> 

js 代码

 <script>
        layui.use('laydate', function() {
            var laydate = layui.laydate;
            //时间
            laydate.render({
                elem: '#start_time',
                type: 'datetime',
                format: 'yyyy-MM-dd HH:mm',
            });
        });
    </script>

记得引入layui.js

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2021-11-20
  • 2022-12-23
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-12-12
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案