40 lines
668 B
SCSS
40 lines
668 B
SCSS
@tailwind base;
|
|
@tailwind utilities;
|
|
@tailwind components;
|
|
|
|
.li-img li {
|
|
list-style: none;
|
|
float: left;
|
|
width: 25%; /*四列图片排列*/
|
|
height: 175px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.li-img li img {
|
|
position: relative;
|
|
width: 100%;
|
|
height: auto;
|
|
top: 50%; /*li高度的一半*/
|
|
transform: translateY(-50%); /*再向上移动自身的50%*/
|
|
}
|
|
|
|
/*清除浮动*/
|
|
.clearfix:after {
|
|
position: relative;
|
|
content: '';
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
visibility: hidden;
|
|
clear: both;
|
|
}
|
|
|
|
.container {
|
|
padding: 24px;
|
|
}
|
|
|
|
.responsive-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(min(50vw, 550px), 1fr));
|
|
gap: 24px;
|
|
} |