1. 新建以下sm样式,保存为layform_sm.css文件名,然后放到layuiadmin/layui/css/文件夹下面。
.layui-input-sm,.layui-select-sm,.layui-textarea-sm
{
width:100px;
height:25px;
line-height:1;
border-width:1px;
border-style:solid;
background-color:#fff;
border-radius:2px;
border-color:#e6e6e6;
padding-left: 5px;
}
.layui-form-item-sm .layui-input-inline-sm {
float: left;
width: 100px;
margin-right: 5px;
}
.layui-input-inline-sm {
display: inline-block;
vertical-align: middle;
position: relative;
}
.layui-form-label-sm {
float: left;
display: block;
padding: 0px 8px;
width: 60px;
font-weight: 400;
/* line-height: 24px; */
text-align: right;
position: relative;
}
.layui-card-header-sm {
position: relative;
/* height: 42px; */
line-height: 28px;
color: rgb(51, 51, 51);
font-size: 14px;
padding: 10px 15px;
border-bottom: 1px solid rgb(246, 246, 246);
border-radius: 2px 2px 0px 0px;
}
.layui-select-title > input {
width:100px;
height:25px;
line-height:1;
border-width:1px;
border-style:solid;
background-color:#fff;
border-radius:2px;
border-color:#e6e6e6;
padding-left: 5px;
}
.layui-pop-search {
cursor: pointer
}
2. 使用方法:将小表单样式放后面引入。
<link type="text/css" href="${ctx}/resources/layuiadmin/layui/css/layui.css" media="all" rel="Stylesheet" />
<link type="text/css" href="${ctx}/resources/layuiadmin/layui/css/layform_sm.css" media="all" rel="Stylesheet" />