
CSSで
linear-gradientを使い、3色(白→透明→白)のグラデーションをかけようとおもったのですが、
linear-gradientはrgbaの記述には対応していないようで、表示されません。
何かいい方法がありましたら教えていただきたいです。
よろしくお願い致します。
現在のコード
.box{ background:url(_img/bg.gif)repeat; width: 100%; background: -moz-linear-gradient(to bottom,#fff,rgba(255,255,255,0) 30%,#fff); background: -webkit-linear-gradient(to bottom,#fff,rgba(255,255,255,0) 30%,#fff); background: linear-gradient(to bottom,rgba(255,255,255,0.5),rgba(255,255,255,0) 30%,rgba(255,255,255,0.5)); }

回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/29 04:07
退会済みユーザー
2018/11/30 00:13