<link rel="stylesheet" th:href="@{/css/public.css}" media="all">
自己编辑的
213123
就不显示<link rel="stylesheet" th:href="@{/css/public.css}" media="all">
自己编辑的
你定义的css不对,你看我定义的css,记住一定要定义 这个,font-size:14px; 因为layui-btn-container 定义font-size:0px; 了
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>控制台</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/lib/layui/css/layui.css" media="all"/>
<style>
.c{
display:inline-block;
min-height:20px;
color:#F00;
min-width:100px;
font-size:14px;
}
</style>
</head>
<body>
<div class="layui-btn-container">
<div class="a">
<button class="layui-btn" type="button" id="a">ddd</button>
<button class="layui-btn" type="button" id="b">ddd</button>
<div class="c">11111</div>
</div>
</div>
</body>
</html>
结果如下:
如有帮助,请点采纳本答案