<input type="text" name="reson" placeholder="0/9"placeholder-style='text-align:right'/> placeholder-class设置wxss无效。但是 placeholder-style(上面那个有效
小程序wxss内样式无效shop.wxml文件内容 <view wx:for="{{promotion}}" wx:key="index" class="shop-promotion-item"> <!-- shop-promotion-icon样式无效--> <image class="shop-promotion-icon" src="{{item.picUrl}}"></image> {{item.info}} </view> shop.wxss文件内容 .shop-promotion-item { margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .shop-promotion-icon { margin-top: -2px; width: 20rpx; height: 20rpx; vertical-align: middle; } 发现view中的image标签class样式无效, 但在style中设置却有效 求解
2021-07-19