[英]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.