Windows phone 7 未在Windows Phone 8 WebBrowser控件中渲染CSS渐变
我面临的一个问题是,在WindowsPhone8的WebBrowser控件中没有呈现CSS3背景。但当在WindowsPhone8的WebBrowser中打开相同的HTML时,它呈现了渐变 我使用的HTML是:Windows phone 7 未在Windows Phone 8 WebBrowser控件中渲染CSS渐变,windows-phone-7,windows-phone-8,internet-explorer-10,Windows Phone 7,Windows Phone 8,Internet Explorer 10,我面临的一个问题是,在WindowsPhone8的WebBrowser控件中没有呈现CSS3背景。但当在WindowsPhone8的WebBrowser中打开相同的HTML时,它呈现了渐变 我使用的HTML是: <html> <head> <meta name="viewport" content="width=320, user-scalable=no, minimum-scale=1, maximum-scale=1"/>
<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>
试验
正文{margin:0px}
在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>");
WebView.NavigateToString(@“测试体{margin:0px}”);
有人能帮忙吗
谢谢
SRS看起来,我解决了这个问题 我添加到HTML中,现在它正确地呈现了它 谢谢