<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>viewport &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/viewport/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Thu, 26 Jan 2012 15:04:01 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>iPhone3のSafariは自動で980pxを320pxに縮小します。</title>
		<link>https://tomodigi.com/web/html/iphone3%e3%81%aesafari%e3%81%af%e8%87%aa%e5%8b%95%e3%81%a7980px%e3%82%92320px%e3%81%ab%e7%b8%ae%e5%b0%8f%e3%81%97%e3%81%be%e3%81%99%e3%80%82/</link>
					<comments>https://tomodigi.com/web/html/iphone3%e3%81%aesafari%e3%81%af%e8%87%aa%e5%8b%95%e3%81%a7980px%e3%82%92320px%e3%81%ab%e7%b8%ae%e5%b0%8f%e3%81%97%e3%81%be%e3%81%99%e3%80%82/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 03:50:35 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[viewport]]></category>
		<category><![CDATA[スマートフォン]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=573</guid>

					<description><![CDATA[スマートフォン向けのサイトでは、画面の横幅が小さいため、PC向けのものよりも、横に表示する情報を少なくすることがあります。 iPhone3GS等(iPod)のディスプレイの横幅が320pxです。デフォルトでは980pxを &#8230; <a href="https://tomodigi.com/web/html/iphone3%e3%81%aesafari%e3%81%af%e8%87%aa%e5%8b%95%e3%81%a7980px%e3%82%92320px%e3%81%ab%e7%b8%ae%e5%b0%8f%e3%81%97%e3%81%be%e3%81%99%e3%80%82/" class="more-link">続きを読む <span class="screen-reader-text">iPhone3のSafariは自動で980pxを320pxに縮小します。</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>スマートフォン向けのサイトでは、画面の横幅が小さいため、PC向けのものよりも、横に表示する情報を少なくすることがあります。<br />
iPhone3GS等(iPod)のディスプレイの横幅が320pxです。デフォルトでは980pxを1/3の320に縮小して表示するので、600px程度のコンテンツでは、画面の2/3程になり、ずいぶん小さい表示になってしまいます。</p>
<p>解決にはメタタグでviewportの設定を行います。</p>
<pre>&lt;meta name="viewport" content="width=640, "&gt;</pre>
<p>と指定すると、640pxを画面いっぱいに表示するようになります。</p>
<p>スマートフォンは画面を回転させることがあるので、PCの用に「とりあえず1000pxくらいならよさそう」というように決め打ちできませんが、viewportを指定すれば、あとはブラウザが勝手に綺麗に表示させてくれます。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/html/iphone3%e3%81%aesafari%e3%81%af%e8%87%aa%e5%8b%95%e3%81%a7980px%e3%82%92320px%e3%81%ab%e7%b8%ae%e5%b0%8f%e3%81%97%e3%81%be%e3%81%99%e3%80%82/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
