······此文章記錄自己入門小程序過程中的坑
1.wxss中 若設置容器view樣式失敗 則必須在wxml中使用style屬性設置(迷)
以下爲有效樣式
<view class="img-v weui-uploader__bd" style="width:750rpx; height:400rpx; background-color:pink;">
以下爲無效樣式
······此文章記錄自己入門小程序過程中的坑
1.wxss中 若設置容器view樣式失敗 則必須在wxml中使用style屬性設置(迷)
以下爲有效樣式
<view class="img-v weui-uploader__bd" style="width:750rpx; height:400rpx; background-color:pink;">
以下爲無效樣式
一.Vue文件內容 <template> </template> <script> </script> <style> </style>