gpt4 book ai didi

html - 芯片关闭按钮不会遵守 css

转载 作者:行者123 更新时间:2023-11-28 01:27:09 28 4
gpt4 key购买 nike

enter image description here

我似乎无法让芯片上的 close x 出现并遵守 .css。

这是 HTML:

<ion-card>
<ion-card-content>
<ion-label>City</ion-label>
<input placeholder="Enter city" #searchPlaces>
<div class="selected-places">
<ion-chip *ngFor="let intPlace of intPlaces">
<ion-label>{{ intPlace }}</ion-label>
<button (click)="deletePlace(intPlace)">
<img src="assets/img/ic-small-close.png"/>
</button>
</ion-chip>
</div>
</ion-card-content>
</ion-card>

和CSS

.selected-places {
ion-label{
width: 79.4px;
font-family: Gotham;
font-size: 14.2px;
font-weight: normal;
font-style: normal;
font-stretch: normal;
line-height: normal;
letter-spacing: normal;
text-align: left;
color: black !important;
overflow-y: visible !important;
}

ion-chip{
display: inline-block;
padding: 0 25px;
padding-bottom: 25px;
height: 30px;
font-size: 12px;
line-height: 20px;
border-radius: 25px;
background-color: #f1f1f1;
margin: 3px;
img{
width: 3px !important;
height: 3px !important;
float: right !important;
}
}

Can't see 'x' img

出于某种原因,我无法在芯片上显示 x。我试过播放 css,但它不会出现在芯片上。

“L”下方的灰色垂直条应该是“x”img。

最佳答案

我通过完全放弃 ionic 芯片而只使用标签解决了这个问题。我遇到了几个问题,这些问题通过不使用 ION 特定元素而仅使用常规 html 对应元素得到解决。

关于html - 芯片关闭按钮不会遵守 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51180448/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com