{"id":5626,"date":"2017-01-04T00:02:57","date_gmt":"2017-01-03T16:02:57","guid":{"rendered":"https:\/\/sdeno.com\/?p=5626"},"modified":"2017-01-04T00:04:54","modified_gmt":"2017-01-03T16:04:54","slug":"%e5%85%b3%e4%ba%8e%e8%8b%b9%e6%9e%9c%e6%89%8b%e6%9c%baiphone%e4%bd%bf%e7%94%a8iframe%e4%b8%8d%e8%83%bd%e8%af%86%e5%88%abwidthdevice-width","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=5626","title":{"rendered":"\u5173\u4e8e\u82f9\u679c\u624b\u673aiPhone\u4f7f\u7528iframe\u4e0d\u80fd\u8bc6\u522bwidth=device-width"},"content":{"rendered":"<p>iframe \u82f9\u679c iphone meta\u00a0width=device-width<\/p>\n<p>\u5728\u5f00\u53d1\u624b\u673a\u9875\u9762\u65f6\uff0c\u6211\u4eec\u90fd\u4f1a\u5728\u5934\u90e8\u6dfb\u52a0\u4e00\u53e5\u8bdd\uff1a<\/p>\n<pre>&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" \/&gt;<\/pre>\n<p>\u4f46\u662f\u6211\u5076\u7136\u4f7f\u7528iframe\u8c03\u7528\u5176\u4ed6\u9875\u9762\u65f6\uff0c\u5728iPhone\u4e0a\u8c8c\u4f3c\u4e0d\u80fd\u8bc6\u522b\u4e0a\u9762\u4e00\u53e5\u8bdd\uff0c\u5b89\u5353\u7684\u6ca1\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<pre>iframe {\r\n min-width: 100%;\r\n width: 100px;\r\n *width: 100%;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5728iframe\u4e0a\u6dfb\u52a0\uff1a(\u7ea2\u8272\u90e8\u5206\u5fc5\u52a0)<\/p>\n<pre>&lt;iframe class=\"block\" src=\".\/pic.html\" <span style=\"color: #ff0000;\">scrolling=\"no\"<\/span> frameborder=\"0\" width=\"100%\" onload=\"$(this).css({height:$($(this)[0].contentDocument).find('body').height()})\"&gt;&lt;\/iframe&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u6587\u7ae0\u6765\u6e90\uff1a<a href=\"http:\/\/stackoverflow.com\/questions\/20123960\/how-to-get-iframe-width-100-in-iphone-portrait-view\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/20123960\/how-to-get-iframe-width-100-in-iphone-portrait-view<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>iframe \u82f9\u679c iphone meta\u00a0width=device-width \u5728\u5f00\u53d1\u624b\u673a\u9875\u9762\u65f6\uff0c\u6211\u4eec\u90fd\u4f1a\u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-5626","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5626"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5626\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}