弹性盒子圣杯布局


"en">

    "UTF-8">
    "viewport" content="width=device-width, initial-scale=1.0">
    "X-UA-Compatible" content="ie=edge">
    Document
    "stylesheet" href="./css/index.css">


    
class="body">
*{
    margin: 0;
    padding: 0;
    list-style: none;
}

header,
footer {
    height: 50px;
    background-color: aquamarine;
}

header {
    flex: 0 0 60px;
}

footer {
    flex: 0 0 40px;
}
html {
    height: 100%;
}
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.body {
    flex: 1;
    display: flex;
}

nav,
aside {
    flex: 0 0 150px;
}

section {
    flex: 1;
    background-color: blueviolet;
}

 

转载于:https://www.cnblogs.com/tujw/p/11107466.html

你可能感兴趣的:(弹性盒子圣杯布局)