【发布时间】:2017-12-27 09:58:41
【问题描述】:
我需要在图像上方放置一个标签。此图像位于布局“垂直”的视图中,我需要此 LABEL 绝对将其放在图像的右上方。我该怎么做?
我的代码:
index.html
`<Alloy>
<View class="col col-2">
<ImageView id="images" class="img-thumbnail" />
<Label id="name"></Label>
<Label id="price"></Label>
</View>
</Alloy>
`
app.tss
".col-2":{
layout: 'vertical',
width: '49.25%',
height: Ti.UI.SIZE,
}
".badge":{
top:0,
right:0,
backgroundColor:'green',
color:'white',
layout:'composite'
}
合金。 钛 SDKA:7.0.0.GA
【问题讨论】:
-
你能展示你想要做什么的示例截图吗?
标签: layout appcelerator composite