weex 中 scroller组件:设置两张图片横向水平展示,结果在实际项目中无法横向水平,还是竖直展示。在 http://dotwe.org/weex/40b8268... 中展示没问题,求解?(如下为测试代码)
<template>
<div>
<scroller scroll-direction="horizontal" class="items-container" show-scrollbar="false">
<image src="https://static.zhongan.com/upload/mobile/material/1483682974042.png" class="img-item" ></image>
<image src="https://static.zhongan.com/upload/mobile/material/1481775117822.png" class="img-item last-item" ></image>
</scroller>
<div class="bottom-view"></div>
</div>
</template>
<style>
.items-container {
background-color: white;
/*height: 192px;*/
height: 300px;
}
.img-item {
width: 455px;
height: 192px;
margin-left: 20px;
}
.last-item {
margin-right: 20px;
}
.bottom-view {
background-color: white;
height: 20px;
width: 750px;
}
</style>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…