【问题标题】:CSS gradient not rendering in Windows Phone 8 WebBrowser ControlCSS 渐变未在 Windows Phone 8 WebBrowser 控件中呈现
【发布时间】:2012-11-12 14:04:22
【问题描述】:

我面临一个问题,在 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

【问题讨论】:

    标签: windows-phone-7 windows-phone-8 internet-explorer-10


    【解决方案1】:

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

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

    谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-23
      • 2012-11-16
      • 1970-01-01
      • 2011-10-14
      • 2012-10-06
      • 1970-01-01
      相关资源
      最近更新 更多