給一個層設置半透明的背景
background:linear-gradient(to bottom, transparent, #ffffff)
在安卓上顯示正常(白色半透明)
但ios上顯示透明漸變會出現灰色,
所以不能直接寫成transparent, 改成如下
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%) 或 background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1))
出現這個問題的原因參考網址:https://blog.csdn.net/simgenius/article/details/82688864