微信小程序 sroll-view css属性设置注意事项
1.sroll-view 必须设置 white-space: nowrap 段落文本中不换行
2.子元素需要设置为 内联块元素 display:inline-block;
3.滑动 list 最外层元素可以添加 移除隐藏避免内容超出 导致排版乱掉 overflow:hidden;
4.内联块元素 无法设置margin-top与margin-right 可以使用padding-top与padding-bottom
<view class='follow-houses-view'>
<view class='follow-title'>最新信息</view>
<view class='follow-houses'>
<scroll-view class="scroll-view_H" scroll-x="true" scroll-with-animation="true" style="white-space: nowrap;" >
<view id="green" class="follow-scroll" >
<view class='follow-info-top'>
<image class='follow-info-img' src='https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1541743618589&di=