1.加载本地图片
本地路径:/pages/images/1.png
<image class="widget_arrow" src="/pages/images/1.png" mode="aspectFill"></image>
在wxss中设置图片样式
.widget_arrow{ width:25px; height:25px; }
2.加载网络图片
网络图片地址:http://img1.3lian.com/2015/w7/85/d/101.jpg
<image class="widget_arrow2" src="http://img1.3lian.com/2015/w7/85/d/101.jpg" mode="aspectFill"></image>在wxss中设置图片样式
.widget_arrow2{ width:155px; height:155px; }结果: