簡體   English   中英

為什么我的 UIwebView 內容在 iOS 中被截斷?

[英]Why is my UIwebView content cut off in iOS?

I am developing an app for the Ipad, the whole app is a webView, in which i load a local html.The UIwebView fills the entire xib. html 有一個 div

width:100%;
position:absolute;
left:0px;
top:0px;
height:100%;

但它始終在右側被切斷 50px 左右?

我如何居中?

嘗試: <meta name = "viewport" content = "initial-scale = 1.0" />

如果其他人遇到同樣的問題,請檢查您的 xib 文件。 webview 尺寸不正確:)

暫無
暫無

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

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