-1

我面临一个问题,在 Windows Phone 8 的 WebBrowser 控件中没有呈现 CSS3 背景。但是在 Windows Phone 8 的 WebBrowser 中打开相同的 HTML 时,它呈现了渐变

我使用的 HTML 是:

    <html>
    <head>
    <meta name="viewport" content="width=320, user-scalable=no, minimum-scale=1, maximum-scale=1"/>
    </head>
    <body style="margin:0px;overflow:hidden;"> 
            <div id="im_c" style="height:48px;width:100%25;  background: -ms-linear-gradient(
                 bottom,                
                 #432100 30%,               
                 #00AAAA 70%);"> 
                <div style="margin:0 auto;width:320px;">
                    Test
                    </div> 

            </div> 
            <style> 
                body {margin:0px} 
            </style> 
    </body>
</html>

在 Windows Phone 8 中,我使用如下 HTML:

WebView.NavigateToString(@"<html><head><meta name=""viewport"" content=""width=320, user-scalable=no, minimum-scale=1, maximum-scale=1""/></head><body style=""margin:0px;overflow:hidden;""> <div id=""im_c"" style=""height:48px;width:100%25; background: -ms-linear-gradient(         bottom,                 #432100 30%,                #00AAAA 70%);""> <div style=""margin:0 auto;width:320px;"">Test</div></div> <style> body {margin:0px} </style> </body></html>");

有人可以在这里帮忙吗?

谢谢 SRS

4

1 回答 1

-1

看起来,我解决了这个问题。

我添加到 HTML 中,现在它可以正确呈现。

谢谢

于 2012-11-26T02:31:27.807 回答