在应用到weui中loadmore效果时,发现网页版和小程序的展现效果不一样。
以下代码为例,小程序中文字不能浮于线条之上,请问是代码写法问题,还是weui适配的问题?
H5版代码:
< div class = "weui-loadmore weui-loadmore_line" > < span class = "weui-loadmore__tips" >暂无数据</ span > </ div > |
H5版效果:
小程序版代码:
<view class= "weui-loadmore__tips" > 暂无数据 </view> </view> |
小程序版效果:
网友回复:
找到原因,原来在小程序中还需要添加属性weui-loadmore__tips_in-line
< view class = "weui-loadmore weui-loadmore_line" > < text class = "weui-loadmore__tips weui-loadmore__tips_in-line" >加载完毕</ text > </ view > |