feat(web.test5): 新增 web 实验5
This commit is contained in:
69
Web/test5/public/index.css
Normal file
69
Web/test5/public/index.css
Normal file
@@ -0,0 +1,69 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: #000000b9;
|
||||
height: 80px;
|
||||
text-align: center;
|
||||
line-height: 80px;
|
||||
font-size: 32px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.main {
|
||||
background-color: blue;
|
||||
overflow: hidden;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.main nav {
|
||||
background-color: cadetblue;
|
||||
float: left;
|
||||
width: 206px;
|
||||
}
|
||||
|
||||
.main .content {
|
||||
background-color: antiquewhite;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.clearfixed::after {
|
||||
content: "";
|
||||
height: 0;
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.main img {
|
||||
width: 580px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.content button {
|
||||
margin-top: 20px;
|
||||
margin-right: 20px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
footer {
|
||||
height: 40px;
|
||||
background: gray;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
}
|
||||
Reference in New Issue
Block a user