【发布时间】:2018-06-22 18:03:42
【问题描述】:
我有一个简单的 html 页面加载到 Windows Phone 中的 webview 控件,它不能缩放到全屏并且出现一个白色补丁(如所附图像)。
<Page
x:Class="loadtime.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:loadtime"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<WebView x:Name="mainWebView"></WebView>
</Grid>
html:
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body style="background-color:red; border: 1px solid blue;">
</body>
</html>
可能是什么原因?是否还有其他需要启用的属性?
【问题讨论】: