繁体   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