Android webview不显示CSS渐变

时间:2015-10-20 21:42:21

标签: android css webview

我有一个在Chrome或IE浏览器中看起来很好的HTML,但是当我在Android webview上托管它时,渐变不显示。

.gradientback{
        position:absolute;
        bottom:0px;
        width:100%;
        height:8px;
        background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(135,135,135,1) 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(135,135,135,1))); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(135,135,135,1) 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(135,135,135,1) 100%); /* Opera 11.10+ */
        background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(135,135,135,1) 100%); /* IE10+ */
        background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(135,135,135,1) 100%); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0089fff1', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
    }

我目前在我的设备上运行6.0,我的genymotion没有工作,或者我在不同的版本上测试它,但我认为他们面临类似的问题。

谢谢,如果这可能会有所帮助,这里有JSFiddle有一些渐变。

0 个答案:

没有答案