模拟器上有背景颜色,真机是没有

发布于 7 年前作者 oli12815 次浏览最后编辑 7 年前来自 ask

<view calss =‘yi-container’ style=‘display:flex;flex-direction:row;background-color:#7c808052;align-items:center;padding-bottom:30rpx;padding-top:10rpx;’>  

代码如上,模拟器上是可以后到有半透明的灰色背景的,预览到真机上就没了,求教下是怎么回事?

3 回复
suping
suping1 楼6 年前

印象中手机是不支持 RGBA的16进制的  你换成  rgba(124, 128, 128, 0.32) 试下

yinjun
yinjun2 楼6 年前

换成6位16进制的就可以了

xiena
xiena3 楼5 年前

#7c808052 真机上不支持这种?