iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
danube533
V2EX  ›  iDev

iOS webview 在 html 中设置 meta viewport 无效?

  •  
  •   danube533 · May 12, 2015 · 6702 views
    This topic created in 4165 days ago, the information mentioned may be changed or developed.

    iOS客户端里用webview嵌入网页,网页是按照640的宽度设置的,由于其他原因webview中并未设置自动缩放,所以想通过html中的meta标签来设置viewport属性,来达到缩放网页的效果,但无论viewport如何设置,在客户端里显示都不起效果,请问大神们这是什么原因呢?

    1 replies  •  2015-05-12 16:20:34 +08:00
    1q2w3e4r
        1
    1q2w3e4r  
       May 12, 2015
    把webview的scalesPageToFit设置成YES、试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2484 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.