查询布局
2021/12/7 23:17:41
本文主要是介绍查询布局,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
@{ ViewBag.Title = "KendoUI.CRUD"; } @section styles{ <style> .tool_bar { padding: 6px; margin: 8px 8px; height: auto; display: flex; flex-wrap: wrap; } .query_toolbar, .query_toolbar_more { display: flex; /*flex-wrap: wrap;*/ border-radius: 4px; width: 90%; margin-bottom: 2px; margin-top: 2px; } .query_toolbar .form-item { display: flex; line-height: 30px; margin-right: 8px; width:20% } .query_toolbar_more .form-item { display: flex; line-height: 30px; margin-right: 8px; width: 20% } .query_toolbar .form-item .form-item-label { min-width: 48px; } .query_toolbar_more .form-item .form-item-label { min-width: 48px; } .query_toolbar .btn_toolbar { margin-right: 10px } </style> } <div class="tool_bar"> <div class="query_toolbar"> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> </div> <div style="display:none" class="query_toolbar_more animate__animated"> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> </div> <div style="display:none" class="query_toolbar_more animate__animated"> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> </div> <div style="display:none" class="query_toolbar_more animate__animated"> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> <div class="form-item"> <label for="name" class="form-item-label">名称:</label> <input type="text" class="form-control" placeholder="请输入名称"> </div> </div> <div class="form-item animate__animated animate__fadeIn" style="width:10%"> <button type="button" class="btn btn-info btn_toolbar">查询</button> <button type="button" class="btn btn-primary btn_toolbar btn_toolbar_open" onclick="openmore(true)">展开</button> <button type="button" class="btn btn-primary btn_toolbar btn_toolbar_close" onclick="openmore(false)">收缩</button> </div> </div> @section scripts{ <script> function openmore(isShow) { if (isShow) { $(".query_toolbar_more").removeClass('animate__slideOutUp'); $(".query_toolbar_more").addClass('animate__slideInDown animate__faster'); $(".query_toolbar_more").show(); $(".btn_toolbar_open").hide(); $(".btn_toolbar_close").show(); } else { $(".btn_toolbar_close").hide(); $(".btn_toolbar_open").show(); $(".query_toolbar_more").addClass('animate__slideOutUp animate__faster'); $(".query_toolbar_more").removeClass('animate__slideInDown'); setTimeout(() => { $(".query_toolbar_more").hide(); },100) } } $(function () { }) </script> }
这篇关于查询布局的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-26大厂数据结构与算法教程:入门级详解
- 2024-12-26大厂算法与数据结构教程:新手入门指南
- 2024-12-26Python编程入门指南
- 2024-12-26数据结构高级教程:新手入门及初级提升指南
- 2024-12-26并查集入门教程:从零开始学会并查集
- 2024-12-26大厂数据结构与算法入门指南
- 2024-12-26大厂算法与数据结构入门教程
- 2024-12-26二叉树入门教程:轻松掌握基础概念与操作
- 2024-12-26初学者指南:轻松掌握链表
- 2024-12-26平衡树入门教程:轻松理解与应用