简体   繁体   中英

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. The html had a one div with

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

but it is consistently cut off on the right side by 50px or so?

how do i center it?

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

If somebody else is having the same problem, check your xib file. The webview was not sized propperly:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM