我需要在uiwebview中显示文档。我已成功显示它,但是我只需要垂直移动webview。我不希望水平滚动该如何实现。.请帮助我
在HTML中,在HTML的<head>
部分中添加以下内容。
<meta name="viewport" content="width=device-width" />
Try this
NSString *test = [NSString stringWithFormat:@"<html><head><style>body{background-color:transparent;word-wrap:break-word;}</style></head><body>%@</body></html>",htmlBody];
[self.webView loadHTMLString:test baseURL:nil];
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.