【发布时间】:2021-08-10 08:30:31
【问题描述】:
有没有办法改变这个图标的大小和边框(icon="images/{Land}.png")??我尝试使用此类“mIcon”,但它会更改所有列表,而不仅仅是带有图像的图标。我不知道是否可以只改变图标的大小。
xmlns:html="http://www.w3.org/1999/xhtml" class="hosp-popup" >
<List id="idListCounPop"
width="100%"
mode="SingleSelectLeft"
selectionChange="onListChange"
items="{ path: '/countrySet' }">
<StandardListItem title="{Landx}" icon="images/{Land}.png" class="mIcon">
<customData>
<core:CustomData key="Land" value="{Landx}" />
<core:CustomData key="Icon" value="sap-icon://globe"/>
</customData>
</StandardListItem>
</List>
这是css的一部分,因为太长了:
.hosp-popup {
height:20em;
min-height: 15em;
max-height: 40em;
}
.hosp-popup .mIcon{
min-height: 4em;
max-height: 4em;
}
谢谢!!!
【问题讨论】:
标签: css list image icons sapui5