开发者

How to disable up/down pan in UIWebView?

开发者 https://www.devze.com 2023-04-08 13:22 出处:网络
I want to have my web view pannable left and right but not up and down. Is that possible开发者_运维百科?

I want to have my web view pannable left and right but not up and down. Is that possible开发者_运维百科?

Thanks.


ok, well wrap your one line of html like this:

<html>
<head>
<meta name = "viewport" content = "height = device-height, user-scalable = no, width = WIDTH">
</head>
<body>
...YOUR HTML
</body>
</html>

Replace width with the width of your content, and see how it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号