AngularDemo/src/app/body/body.component.scss

40 lines
668 B
SCSS
Raw Normal View History

2023-12-07 14:38:02 +00:00
@tailwind base;
@tailwind utilities;
@tailwind components;
.li-img li {
2023-12-26 12:32:01 +00:00
list-style: none;
float: left;
width: 25%; /*四列图片排列*/
height: 175px;
overflow: hidden;
2023-12-07 14:38:02 +00:00
}
.li-img li img {
2023-12-26 12:32:01 +00:00
position: relative;
width: 100%;
height: auto;
top: 50%; /*li高度的一半*/
transform: translateY(-50%); /*再向上移动自身的50%*/
2023-12-07 14:38:02 +00:00
}
/*清除浮动*/
.clearfix:after {
2023-12-26 12:32:01 +00:00
position: relative;
content: '';
display: block;
width: 0;
height: 0;
visibility: hidden;
clear: both;
2024-01-03 17:18:55 +00:00
}
.container {
padding: 24px;
}
.responsive-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(50vw, 550px), 1fr));
gap: 24px;
2023-12-07 14:38:02 +00:00
}