Layui第二天学习(layui使用session)

boyanx22小时前技术教程1
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>栅格系统</title>
        <!--LayUI的核心css文件-->
        <link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
        <!--LayUI的核心js文件-->
        <script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
    <!--
        栅格系统
          列组合
            1.定义行 .layui-row
            2.定义列 .layui-col-md*
                md 表示不同屏幕的标识(xs sm md lg) 
                *  表示列数量
            3.每一行均分为12列,列的总数不能超过12,否则会自动换行
            4.响应式规则
                栅格会自动根据屏幕分辨率选择对应的样式效果
          列边距
            .layui-col-space*
               * 代表的式px值(1~30)
          列偏移
             将列向右移动指定列数
            .layui-col-md-offset*
               * 代表的是列数
          列嵌套
            列之间可以无限嵌套列
            
    -------------------------------------------------------------------------
                |超小屏幕      |小屏幕        |中等屏幕        |大型屏幕
                |(手机<768px)  |(平板>=768px) |(桌面>=992px)  |(桌面>=1200px)
    --------------------------------------------------------------------------
    .layui-   |auto         |750px         |970px          |1170px
    container |
    的值      |
    --------------------------------------------------------------------------
    标记      |xs           |sm            |md             |lg
    --------------------------------------------------------------------------
    列对应类* |layui-col-xs* |layui-col-sm*|layui-col-md*  |layui-col-lg*
    为1-12的  |
    等分的值  |
    --------------------------------------------------------------------------
    总列数    |12            |12           |12             |12
    --------------------------------------------------------------------------
    响应行为  |始终按设定的比 |在当前屏幕下水 |在当前屏幕下水平|在当前屏幕下水平
                |例水平排列     |平排列,如果屏 |排列,如果屏幕大|排列,如果屏幕大
                |              |幕大小低于临界 |小低于临界则堆叠|小低于临界则堆叠
                |              |则堆叠排列     | 排列          |排列
    --------------------------------------------------------------------------
    -->

        <!--布局容器-->
        <div class="layui-container">
            <!--定义行-->
            <div class="layui-row">
                <!--定义列-->
                <div class="layui-col-md5" style="background-color: rgb(130, 215, 243);">
                    内容5/12
                </div>

                <div class="layui-col-md7" style="background-color: rgb(44, 141, 173);">
                    内容7/12
                </div>
            </div>

            <!--定义行-->
            <div class="layui-row">
                <!--定义列-->
                <div class="layui-col-md4" style="background-color: rgb(6, 126, 18);">
                    内容4/12
                </div>

                <div class="layui-col-md4" style="background-color: rgb(116, 180, 122);">
                    内容4/12
                </div>
            </div>
        </div>

        <hr>
        <h3>平板、桌面端的不同表现:</h3>
        <div class="layui-row">
            <div class="layui-col-sm6 layui-col-md4" style="background-color:thistle">
                平板>=768px:6/12  |  桌面>=992px: 4/12
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-sm4 layui-col-md6" style="background-color: rgb(28, 104, 107);">
                平板>=768px:4/12  |  桌面>=992px: 6/12
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-sm12 layui-col-md8" style="background-color: rgb(201, 32, 130);">
                平板>=768px:12/12  |  桌面>=992px: 8/12
            </div>
        </div>

        <hr>
        <h3>列边距</h3>
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md4" >
                <div style="background-color:rgb(189, 139, 247)">4</div>
            </div>
            <div class="layui-col-md4" >
                <div style="background-color:rgb(134, 39, 197)">5</div>
            </div>
            <div class="layui-col-md4" >
                <div style="background-color:rgb(116, 19, 243)">6</div>
            </div>
        </div>

        <hr>
        <h3>列偏移</h3>
        <div class="layui-row">
            <div class="layui-col-md4" >
                <div style="background-color:rgb(247, 240, 139)">4</div>
            </div>
            <div class="layui-col-md4 layui-col-md-offset4" >
                <div style="background-color:rgb(163, 180, 6)">向右移动4个位置</div>
            </div>
        </div>

        <hr>
        <h3>列嵌套</h3>
        <div class="layui-row">
            <div class="layui-col-md6" >
                <div style="background-color:rgb(247, 240, 139)">
                    <div class="layui-row">
                        <div class="layui-col-md3" style="background-color:rgb(248, 149, 118)">内部列</div>
                        <div class="layui-col-md5" style="background-color:rgb(207, 250, 166)">内部列</div>
                        <div class="layui-col-md4" style="background-color:rgb(133, 248, 181)">内部列</div>
                    </div>
                    
                </div>
            </div>
            
        </div>
    </body>
</html>
标签: layui 多选

相关文章

C# .NET 6 校园图书管理系统:第18章 layui 创建图书室

1.前言现在是2021年12月31日23:35:21,马上就要2022年了,这一年啥都干了,又好像啥都没干。兜里卡里还是空的(⊙o⊙)…本章我们继续完成图书室的创建。2.图示3.思路图书室创建的同时直...

springboot教务管理系统+微信小程序云开发附带源码

今天给大家分享的程序是基于springboot的管理,前端是小程序,系统非常的nice,不管是学习还是毕设都非常的靠谱。本系统主要分为pc端后台管理和微信小程序端,pc端有三个角色:管理员、学生、教师...

thinkphp6里怎么给layui数据表格输送数据接口

layui官网已经下架了,但是产品还是可以使用。今天一个朋友问我怎么给layui数据表格发送数据接口,当然他是学前端的,后端不怎么懂,自学了tp框架问我怎么调用。其实官方文档上就有相应的数据格式,js...

2022年优秀的Web前端UI框架推荐(web前端ui框架有哪些)

选择好一款Web前端UI框架,对于前端入门开发者是非常重要的,它决定了你系统设计出来的UI风格。有时候我们不需要重复造轮子,特别是对于非专业前端的开发者,选择使用UI框架可以让我们把更多的精力放在业务...

前端猿应该知道的十大最流行的前端UI框架

在前端项目开发过程中,现在很少有人会使用原生的CSS来搭建页面,总归都会引入一些前端UI框架以减少代码的书写。一般为了方便自己的使用,很多大公司都有自己的一套UI框架,同时也会把其开源出来。下面就是最...

一款面向 AI 的下一代富文本编辑器,已开源

简介AiEditor 是一个面向 AI 的下一代富文本编辑器。开箱即用、支持所有前端框架、支持 Markdown 书写模式什么是AiEditor?AiEditor 是一个面向 AI 的下一代富文本编辑...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。