我正在使用 Angular Mat 卡,并且有一个按钮,每次单击该按钮时都会在数据库中创建新卡,但新卡显示在现有卡的底部,两者之间没有任何间隙,所以如果你们可以提供帮助我弄清楚如何制作间隙/边距,这会很棒。谢谢
.clickable {
cursor: pointer;
}
.mat-chip {
background-color: #DFDFDF;
text-align: left;
font: Regular 16px/21px Roboto;
letter-spacing: 0.29px;
color: #000000DE;
opacity: 1;
border-radius: 18px;
opacity: 1;
}
.mat-card {
margin-left: -10px;
padding: 0;
margin-bottom: 20px;;
width: 350px;
height: auto;
cursor: pointer;
}
.chipMargin{
margin-left: 5%;
margin-right: 5%;
}
.mat-chip-list {
display: table-row;
flex-direction: column;
}
@media screen and (min-width:768px)
{
.divider {
height: 90%;
position: absolute;
left: 900px;
right: 830px;
top: 40px;
}
.column {
float: left;
width: 950px;
padding: 10px;
margin-left: 30px;
margin-top: 10px;
}
.column2 {
width: 730px;
float: right;
right: 70px;
position: absolute;
}
.row:after {
content: "";
display: table;
clear: both;
}
.inline-block {
display: inline-block;
}
}
慕的地10843
相关分类