From f1d2c9a3aea5014ecaaaf8639af78dd824db7c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E5=BD=93=20`size`?= =?UTF-8?q?=20=E4=B8=BA=20`sm`=20=E5=92=8C=20`lg`=20=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/css/layui.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/css/layui.css b/src/css/layui.css index 6743d53e..7b568357 100644 --- a/src/css/layui.css +++ b/src/css/layui.css @@ -1136,7 +1136,9 @@ select.layui-table-edit{padding: 0 0 0 10px; border-color: #d2d2d2;} .layui-table-grid-down:hover{background-color: #fbfbfb;} .layui-table-expanded{height: 95px;} -.layui-table-expanded .layui-table-cell{height: auto; max-height: 95px; white-space: normal; text-overflow: clip;} +.layui-table-expanded .layui-table-cell, +.layui-table-view .layui-table[lay-size="sm"] .layui-table-expanded .layui-table-cell, +.layui-table-view .layui-table[lay-size="lg"] .layui-table-expanded .layui-table-cell{height: auto; max-height: 94px; white-space: normal; text-overflow: clip;} .layui-table-cell-c{position: absolute; bottom: -10px; right: 50%; margin-right: -9px; width: 20px; height: 20px; line-height: 18px; cursor: pointer; text-align: center; background-color: #fff; border: 1px solid #eee; border-radius: 50%; z-index: 1000; transition: 0.3s all; font-size: 14px;} .layui-table-cell-c:hover{border-color: #16b777;} .layui-table-expanded td:hover .layui-table-cell{overflow: auto;}