在我的情况下,我在Xamarin.Forms中拥有了此共享代码,它在iOS平台中呈现良好,但是在android中
iOS平台
我的ContentPage
public class LocalHtml : ContentPage
{
public LocalHtml()
{
var browser = new CookieWebView();
var htmlSource = new HtmlWebViewSource();
htmlSource.Html = @"<html><body>
<h1>Xamarin.Forms</h1>
<iframe src=""https://player.vimeo.com/video/236787722"" style=""background-color: #000000"" width=""360"" height=""200"" frameborder=""0"" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</body>
</html>";
browser.Source = htmlSource;
Content = browser;
}
}