我想删除 ion-slide 内项目的填充。通过设置背景颜色,我发现它必须来自那里,如图所示:
我想删除绿色区域。
<ion-content >
<ion-slides style="background-color: #976914d0" >
<ion-slide *ngFor="let channel of channels" style="background-color: #0c8831d0">
<div class="flex-container">
<br/>
<h1 class="title-top"> {{channel.name}} </h1>
...
以及到目前为止我对 scss 的尝试:
.ios, .md {
page-home {
ion-slide {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
}
.flex-container {
flex-basis:100% !important;
overflow: auto;
height: 100% !important;
background-color: #3498db;
//height: 100%;
//display: flex; /* or inline-flex */
flex:1;
//align-content: space-between;
justify-content: space-around;
flex-direction: column;
//flex-grow: 1;
border: solid 5px #000000 ;
}
[编辑] 我应该提到在 flex-container 中我可以设置 height: 600px; 它可以制作更大的物品,但它不便携。和 height: 100% 什么都不做。