溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決

發(fā)布時間:2022-04-13 14:55:11 來源:億速云 閱讀:197 作者:iii 欄目:編程語言

這篇文章主要講解了“微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決”,文中的講解內(nèi)容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決”吧!

微信小程序自定義tabbar custom-tab-bar 6s出不來的解決方法,cover-view不兼容,具體內(nèi)容如下所示:

1.從微信小程序的官網(wǎng)扣下來的demo,實際測試中,發(fā)現(xiàn)6s ios10 系統(tǒng)不兼容,里面的內(nèi)容出不來

<cover-view class="tab-bar">
 <cover-view class="tab-bar-border"></cover-view>
 <cover-view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
  <cover-image src="{{item.checked ? item.selectedIconPath : item.iconPath}}" ></cover-image>
  <cover-view >{{item.text}}</cover-view>
 </cover-view>
</cover-view>

2.實際效果如下: 底部的tabbar沒出來

微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決

3.把 cover-view 改成 view  把  cover-image 改成 image 標簽

<view class="tab-bar">
 <view class="tab-bar-border"></view>
 <view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
  <image src="{{item.checked ? item.selectedIconPath : item.iconPath}}" ></image>
  <view >{{item.text}}</view>
 </view>
</view>

4. 記得把你的css 樣式也改一下啊  默認的  class 有cover-view cover-image

5.現(xiàn)在的效果如下

微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決

微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決

感謝各位的閱讀,以上就是“微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決”的內(nèi)容了,經(jīng)過本文的學習后,相信大家對微信小程序中自定義tabbar custom-tab-bar 6s出不來如何解決這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI