」。"/> 」。">
小程式圖片如何鋪滿整個螢幕?
鋪滿螢幕,主要用到
具體加在的程式段是.wxml:
<image src="/images/1.jpg" class='in-image' mode='widthFix'> </image>
以及.wxss的改變:
page{ height:100% } .imagesize{ display:flex; height: 100%; justify-content: center; align-items:center; }
演示:
微信小程式》
以上是小程式圖片如何鋪滿整個螢幕?的詳細內容。更多資訊請關注PHP中文網其他相關文章!