<div class="card">
<div class="item item-thumbnail-left thumb-centre thumb-right">
<img src="img/carryout-icon.jpg"></img>
<img src="img/or.jpg"></img>
<img src="img/delivery-icon.jpg"></img>
</div>
</div>
CSS:添加图像
.item.thumb-right img{
position: absolute !important;
top: 10px !important;
right: 20px !important;
margin-right: 20px !important;
max-width: 80px !important;
max-height: 80px !important;
width: 100% !important;
}
我怎么这么更新此为在中心图像
.item.thumb-centre img{
position: center !important;
top: 10px !important;
max-width: 80px !important;
max-height: 80px !important;
width: 100% !important;
}
演示:
http://play.ionic.io/app/91deb2272019
Edi t:中心图像的垂直对齐问题 这就是它在控制台中的样子。
没有'position:center',你有三张图片,你想要哪一张?你有没有尝试在父元素上的文本对齐:center? –