簡體   English   中英

MAUI.NET修改webview里面的網站布局

[英]MAUI.NET modifies the layout of the website inside the webview

我最近正在接近移動應用程序開發的世界,並且我最近一直在練習 MAUI.NET。

我的目標是將網站(已經響應)放入 MAUI WebView 並分發 Android 和 IOS 的應用程序。

這是我的測試 MainPage.xaml:

    <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="POCMobileApp.MainPage">
    <WebView x:Name="browser" Source="https://www.google.it"></WebView> //google link is only for test
</ContentPage>

問題如下:如果我從 android google chrome 打開它,該網站是完全可見的,並且該網站上的所有控件都在正確的位置。 但是當我在 webview 中打開 MAUI 應用程序時,所有控件都已不合適。 有沒有辦法避免這個問題?

[編輯] 這是瀏覽器移動版的打印屏幕: pic mobile version

雖然這是 android 仿真器的版本: pic emulator

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM