<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>@yield("title",'圣杯布局')</title>
</head>
<style>
*{
color: #fff;
text-align: center;
}
header{
background-color: lightpink;
height: 150px;
width: 100%;
line-height: 150px;
}
.flex-box{
display: flex;
}
.flex-left{
background-color: lightblue;
flex: 0 0 200px;
height: 400px;
width: 100px;
line-height: 400px;
}
.flex-right{
background-color: lightblue;
flex: 0 0 200px;
height: 400px;
width: 100px;
line-height: 400px;
text-align: center;
}
.flex-center{
background-color: lightgray;
flex-grow: 1;
height: 400px;
width: 50px;
line-height: 400px;
text-align: center;
}
footer{
background-color: lightpink;
height: 150px;
width: 100%;
line-height: 150px;
text-align: center;
}
</style>
<body>
<header>header</header>
<div class="flex-box">
<div class="flex-left">@yield('left')</div>
<div class="flex-center">@yield('main')</div>
<div class="flex-right">@yield('right')</div>
</div>
<footer>footer</footer>
</body>
</html>
07-13
07-13
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交