css-grid布局实战-选做作业
16lz
2022-03-29
练习
body {
margin: 40px;
}
.title{
margin: 30px 130px;
}
.box {
height: 235px;
}
.box .content {
display: grid;
background-color: #ffffff;
border-radius: 5px;
}
.box .content .bottom {
display: flex;
flex-direction: column;
place-items: center;
padding: 20px 5px;
gap: 30px;
}
.box .content .bottom .up span{
font-size: 13px;
background-color: rgb(156, 155, 155);
padding: 0 4px;
border-radius: 2px;
color: white;
}
.box .content .bottom .up h5{
padding-left: 5px;
}
.box .content .bottom .up h5:hover{
color: red;
cursor: pointer;
}
.box .content .bottom .down{
font-size: 12px;
color: #c2c4c4;
}
.box .content .bottom .down .sc{
font-size: 16px;
}
.box .content .bottom .down .sc:hover{
color: red;
cursor: pointer;
}
.box .content .bottom .down span{
margin-left: 70px;
margin-right: 10px;
}
.box .content .bottom .up,.down{
display: flex;
flex-direction: row;
place-items: center;
}
.content img {
width: 100%;
border-radius: 5px 5px 0 0;
}
.wrapper {
display: grid;
grid-gap: 30px 20px;
grid-template-columns: repeat(5, 224px);
place-content: center;
}
更多相关文章
- 练习PHP中文网首页
- 模态框练习
- 选择器权重及伪类选择器练习
- 想躺平的第二天
- 表单、内联框架及css练习
- html基础-表格合并练习
- HTML入门学习之表格制作课程表实战练习
- HTML基础标签练习作业
- markdown语法练习