<?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>EC studio デザインブログ</title>
	<atom:link href="http://designblog.ecstudio.jp/feed" rel="self" type="application/rss+xml" />
	<link>http://designblog.ecstudio.jp</link>
	<description>EC studio 企画デザインブログ</description>
	<lastBuildDate>Mon, 08 Mar 2010 08:39:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ブラウザ上でWebページをリアルタイム編集できる簡単な方法</title>
		<link>http://designblog.ecstudio.jp/tool/page_editor.html</link>
		<comments>http://designblog.ecstudio.jp/tool/page_editor.html#comments</comments>
		<pubDate>Thu, 04 Mar 2010 10:58:19 +0000</pubDate>
		<dc:creator>端山 佳枝</dc:creator>
				<category><![CDATA[ツール紹介]]></category>
		<category><![CDATA[firefox addon]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[効率化]]></category>
		<category><![CDATA[小技]]></category>
		<category><![CDATA[配布]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1423</guid>
		<description><![CDATA[「テキスト修正してサーバーにアップしたけど、今度は改行がおかしい・・・
　また作り直して、アップしなおさないと・・・」
「このテーブル、項目が増えてもレイアウトが崩れないかなぁ・・・
　検証面倒くさいなぁ・・・」
「打ち合わせ中に、この画像を削除したパターンが見たいっていわれけど・・・
　今HTMLファイルもFTP情報もないしなぁ・・・」
こんなとき、リアルタイムでWebページを編集できたら便利ですよね。
そこで紹介するのが今回の方法です。
ブラウザのアドオンやエクステンションのインストールは一切なし！
ブラウザに左右されない！（Firefox、IE8、Chrome、Opera共通）
そんな便利な方法をご紹介します。

お気に入りに追加してWebページを編集する方法

下記のテキストリンクを「ドラッグ」し、
ブラウザのツールバーに「ドロップ」します。
このページを編集する

ツールバーに入った「このページを編集する」のブックマークをクリック。
すると、開いているページが編集できるようになります。
テキストや画像を選択し、「Delete」や文字を入力してみてください。
なんということでしょう。
編集したとおりに、Webページが変わります。

アドレスバーに入力してWebページを編集する方法
テキスト表示
JAVASCRIPT:




javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200 






もう一つの方法は、直接ブラウザのアドレスバーに上記の文字列を入力する方法です。

そして、入力後エンターを押してください。
すると、さきほどと同じように編集が可能になります。
機能は、Firefoxのアドオン「PageHacker」と同じです。
【参照記事：画面レビューにめちゃくちゃ便利なFireFoxプラグイン】
でも、「PageHacker」と違ってインストールが不要、
Firefox以外でも使えるので、さらに便利！
是非お試しあれ。

	関連した記事：
	
	効率的！Fireworks CS3ショートカットキーまとめをデスクトップ壁紙に！ 
	FireworksCS4が重い・固まる現象を改善する方法 
	誤字脱字を事前に減らして効率化！ 
	自動化のすすめ（フォトショップのバッチ処理編） 
	自動化のすすめ（イラストレーター編） 


]]></description>
			<content:encoded><![CDATA[<p>「テキスト修正してサーバーにアップしたけど、今度は改行がおかしい・・・<br />
　また作り直して、アップしなおさないと・・・」<br />
「このテーブル、項目が増えてもレイアウトが崩れないかなぁ・・・<br />
　検証面倒くさいなぁ・・・」<br />
「打ち合わせ中に、この画像を削除したパターンが見たいっていわれけど・・・<br />
　今HTMLファイルもFTP情報もないしなぁ・・・」</p>
<p>こんなとき、リアルタイムでWebページを編集できたら便利ですよね。</p>
<p>そこで紹介するのが今回の方法です。<br />
ブラウザのアドオンやエクステンションのインストールは一切なし！<br />
ブラウザに左右されない！（Firefox、IE8、Chrome、Opera共通）</p>
<p>そんな便利な方法をご紹介します。</p>
<p><span id="more-1423"></span></p>
<h4>お気に入りに追加してWebページを編集する方法</h4>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/sample1.jpg" alt="sample1" title="sample1" width="479" height="252" class="alignnone size-full wp-image-1483" /><br />
下記のテキストリンクを「ドラッグ」し、<br />
ブラウザのツールバーに「ドロップ」します。<br />
<a href="javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200">このページを編集する</a></p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/sample2.jpg" alt="sample2" title="sample2" width="354" height="114" class="alignnone size-full wp-image-1481" /><br />
ツールバーに入った「このページを編集する」のブックマークをクリック。</p>
<p>すると、開いているページが編集できるようになります。<br />
テキストや画像を選択し、「Delete」や文字を入力してみてください。</p>
<p>なんということでしょう。<br />
編集したとおりに、Webページが変わります。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/sample0.jpg" alt="sample0" title="sample0" width="396" height="184" class="alignnone size-full wp-image-1479" /></p>
<h4>アドレスバーに入力してWebページを編集する方法</h4>
<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-2">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">javascript:document.<span style="color: #006600;">body</span>.<span style="color: #006600;">contentEditable</span>%<span style="color: #CC0000;color:#800000;">20</span>=%20<span style="color: #3366CC;">'true'</span>;%20document.<span style="color: #006600;">designMode</span>=<span style="color: #3366CC;">'on'</span>;%20void%<span style="color: #CC0000;color:#800000;">200</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
もう一つの方法は、直接ブラウザのアドレスバーに上記の文字列を入力する方法です。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/sample3.jpg" alt="sample3" title="sample3" width="395" height="59" class="alignnone size-full wp-image-1482" /><br />
そして、入力後エンターを押してください。</p>
<p>すると、さきほどと同じように編集が可能になります。</p>
<p>機能は、Firefoxのアドオン「PageHacker」と同じです。<br />
【参照記事：<a href="http://techblog.ecstudio.jp/tech-tips/firefox-addons-for-screen-review.html" target="_blank">画面レビューにめちゃくちゃ便利なFireFoxプラグイン</a>】<br />
でも、「PageHacker」と違ってインストールが不要、<br />
Firefox以外でも使えるので、さらに便利！<br />
是非お試しあれ。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/tool/fireworks-shortcutkey.html" title="効率的！Fireworks CS3ショートカットキーまとめをデスクトップ壁紙に！ (2009/1/8 木曜日)">効率的！Fireworks CS3ショートカットキーまとめをデスクトップ壁紙に！</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tutorial/busy_fireworks.html" title="FireworksCS4が重い・固まる現象を改善する方法 (2009/6/4 木曜日)">FireworksCS4が重い・固まる現象を改善する方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/design-2/correct-proofs.html" title="誤字脱字を事前に減らして効率化！ (2008/10/24 金曜日)">誤字脱字を事前に減らして効率化！</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/photoshop-batch.html" title="自動化のすすめ（フォトショップのバッチ処理編） (2008/7/25 金曜日)">自動化のすすめ（フォトショップのバッチ処理編）</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/illustrator-script.html" title="自動化のすすめ（イラストレーター編） (2008/6/5 木曜日)">自動化のすすめ（イラストレーター編）</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/tool/page_editor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法</title>
		<link>http://designblog.ecstudio.jp/htmlcss/my-zen-coding.html</link>
		<comments>http://designblog.ecstudio.jp/htmlcss/my-zen-coding.html#comments</comments>
		<pubDate>Tue, 02 Mar 2010 15:00:04 +0000</pubDate>
		<dc:creator>谷 拓樹</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[zen-coding]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1445</guid>
		<description><![CDATA[Zen-CodingでHTML/CSSコーディング作業の効率があがった人が増えてきたのではないかと思いますが、そこでさらにカスタマイズすることで効率化アップする方法を紹介します。
Zen-Codingではあらかじめ多くのHTML/CSSのショートコード、スニペットが登録されていますが、Zen-Codingを構成するファイルを少し修正するだけで、オリジナルのコードを登録することができます。
JavaScriptを触ることにはなりますが、JavaScriptを知らなくても大丈夫なぐらい簡単です。

zen_setting.jsに秘密がある
Zen-Codingをダウンロードすると、対応アプリケーションごとのファイルをダウンロードすることができますが、そのダウンロードしたファイルの中にはzen_setting.jsというファイルが存在しています。
実はその中に、省略コードやスニペットがすべて書き込まれています。
※アプリケーションによって、違う名前で存在する場合があります。
Textmateの場合は zen_settings.py になります。
このファイルの中に自分独自の記述を書き込んだり、既存のものを修正すればカスタマイズができます。
コードの種類
書込・修正ができる内容には2種類あります。
snippets・・・
スニペット。長い・複数行記述の場合はこちら。
abbreviations・・・
省略コード。短い・一行記述の場合はこちら。また特殊な書き方をすることで、省略コードの省略コード、みたいな書き方ができます。
上記は結構荒い説明ではありますが、そういった感覚で大丈夫です。
今回は前者のスニペットとして追加する方法を解説します。
よく使うコードをスニペット登録する
あまりHTMLでスニペット化をする例は少ないので、CSSでのスニペットを追加します。
zen_setting.js 21行目から
テキスト表示
JavaScript:




'css': &#123;// 21行目


&#160; &#160; &#160; &#160; 'snippets': &#123;


&#160; &#160; &#160; &#160; &#160; &#160; "@i": "@import url(&#124;);",


// ~省略~~~~~~~~~~~~~~~~~~~~~~~~~~


&#160; &#160; &#160; &#160; &#160; &#160; "pgba:l": "page-break-after:left;",


&#160; &#160; &#160; &#160; &#160; &#160; "pgba:r": "page-break-after:right;",


&#160; &#160; &#160; &#160; &#160; &#160; "orp": "orphans:&#124;;",


&#160; &#160; &#160; &#160; &#160; &#160; "wid": "widows:&#124;;"// 492行目


&#160; &#160; &#160; &#160; &#125;// 493行目 






これがCSSのスニペットが記述されているところです。
スニペットとして定型文登録したい内容を追加しましょう。
例えば、使われる頻度が多いであろう「Clearfix」のコードを登録します。
下記はClearfixのCSSサンプルです。
テキスト表示
CSS:




.clearfix [...]]]></description>
			<content:encoded><![CDATA[<p>Zen-CodingでHTML/CSSコーディング作業の効率があがった人が増えてきたのではないかと思いますが、そこでさらにカスタマイズすることで効率化アップする方法を紹介します。</p>
<p>Zen-Codingではあらかじめ多くのHTML/CSSのショートコード、スニペットが登録されていますが、Zen-Codingを構成するファイルを少し修正するだけで、オリジナルのコードを登録することができます。<br />
JavaScriptを触ることにはなりますが、JavaScriptを知らなくても大丈夫なぐらい簡単です。<br />
<span id="more-1445"></span></p>
<h4>zen_setting.jsに秘密がある</h4>
<p>Zen-Codingをダウンロードすると、対応アプリケーションごとのファイルをダウンロードすることができますが、そのダウンロードしたファイルの中には<strong>zen_setting.js</strong>というファイルが存在しています。<br />
実はその中に、省略コードやスニペットがすべて書き込まれています。<br />
※アプリケーションによって、違う名前で存在する場合があります。<br />
Textmateの場合は zen_settings.py になります。</p>
<p>このファイルの中に自分独自の記述を書き込んだり、既存のものを修正すればカスタマイズができます。</p>
<h4>コードの種類</h4>
<p>書込・修正ができる内容には2種類あります。</p>
<p>snippets・・・<br />
スニペット。長い・複数行記述の場合はこちら。<br />
abbreviations・・・<br />
省略コード。短い・一行記述の場合はこちら。また特殊な書き方をすることで、省略コードの省略コード、みたいな書き方ができます。</p>
<p>上記は結構荒い説明ではありますが、そういった感覚で大丈夫です。<br />
今回は前者のスニペットとして追加する方法を解説します。</p>
<h4>よく使うコードをスニペット登録する</h4>
<p>あまりHTMLでスニペット化をする例は少ないので、CSSでのスニペットを追加します。</p>
<p>zen_setting.js 21行目から</p>
<div class="igBar"><span id="ljavascript-7"><a href="#" onclick="javascript:showPlainTxt('javascript-7'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-7">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #3366CC;">'css'</span>: <span style="color: #66cc66;">&#123;</span><span style="color: #009900; font-style: italic;">// 21行目</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'snippets'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">"@i"</span>: <span style="color: #3366CC;">"@import url(|);"</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// ~省略~~~~~~~~~~~~~~~~~~~~~~~~~~</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">"pgba:l"</span>: <span style="color: #3366CC;">"page-break-after:left;"</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">"pgba:r"</span>: <span style="color: #3366CC;">"page-break-after:right;"</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">"orp"</span>: <span style="color: #3366CC;">"orphans:|;"</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">"wid"</span>: <span style="color: #3366CC;">"widows:|;"</span><span style="color: #009900; font-style: italic;">// 492行目</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #009900; font-style: italic;">// 493行目 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これがCSSのスニペットが記述されているところです。<br />
スニペットとして定型文登録したい内容を追加しましょう。</p>
<p>例えば、使われる頻度が多いであろう「Clearfix」のコードを登録します。<br />
下記はClearfixのCSSサンプルです。</p>
<div class="igBar"><span id="lcss-8"><a href="#" onclick="javascript:showPlainTxt('css-8'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-8">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.clearfix </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;zoom: <span style="color: #cc66cc;color:#800000;">1</span>;<span style="color: #808080; font-style: italic;">/*for IE 5.5-7*/</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">.clearfix<span style="color: #3333ff;">:after </span><span style="color: #66cc66;">&#123;</span><span style="color: #808080; font-style: italic;">/*for modern browser*/</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">content</span>: “.”;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;&nbsp; &nbsp; </div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 0px;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">clear</span>: <span style="color: #993333;">both</span>;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;line-<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">visibility</span>: <span style="color: #993333;">hidden</span>;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
※コードの参照元：<a href="<br />
http://kennsu.jp/2008/11/cssclearfix.html">http://kennsu.jp/2008/11/cssclearfix.html</a></p>
<p>このコードを登録したければ、下記コードをzen_setting.js の492行目と493行目に差し込みます。</p>
<div class="igBar"><span id="ljavascript-9"><a href="#" onclick="javascript:showPlainTxt('javascript-9'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-9">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #3366CC;">"wid"</span>: <span style="color: #3366CC;">"widows:|;"</span>,<span style="color: #009900; font-style: italic;">// ←の&quot;,&quot;を忘れないようにする</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'clearfix'</span>: <span style="color: #3366CC;">'.clearfix {<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;zoom: 1;/*for IE 5.5-7*/<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'}<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'.clearfix:after {/*for modern browser*/<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;content: “.”;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;display: block;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;height: 0px;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;clear: both;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;line-height: 0;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;visibility: hidden;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'} '</span><span style="color: #009900; font-style: italic;">// 末行に&quot;,&quot;は不要 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このような手順です。あとは CSSファイル内で<br />
<code>clearfix</code>と書いて、<kbd>Ctrl+E</kbd>すれば、コードが展開されます。</p>
<p>あまりJavaScriptなどに触れない人向けに、上記例で補足コメントをつけていますが、各行末の<code>,</code>（半角コンマ）の付け忘れや、最後の行には付けない、という文法にも気を付けるようにしましょう。</p>
<h4>Aptanaの人はちょっと待った！</h4>
<p>Aptanaの場合、親切にも「<strong>my_zen_setting.js</strong>」という独自のコードを追加するためのjsファイルが用意されています。<br />
前述までの例は、直接元ファイルのソースを修正することになるので、それよりは別で管理されたファイルに書き込む方が問題は少ないですね。<br />
書き方については、zen_setting.js を修正するのと同じです。</p>
<p>サンプルとして、僕のmy_zen_setting.jsの内容を書いておきます。<br />
ダウンロードもできるようにしておくので、Aptanaを使っている方はそれをいれても良し、Aptana以外の方もzen_setting.jsを修正する参考にしてください。</p>
<p>内容は下記です。</p>
<ul class="list">
<li>CSS:clearfix</li>
<li>CSS:opacity（透過度指定スタイル）</li>
<li>HTML:jQuery 1.4.2</li>
<li>HTML:jQuery 1.3.2</li>
<li>HTML:Swfobject</li>
<li>HTML:Chrome Frame</li>
<li>HTML:html5.js</li>
<li>HTML:Microformats hCard</li>
<li>HTML:Microformats hReview</li>
</ul>
<p>my_zen_setting.js</p>
<div class="igBar"><span id="ljavascript-10"><a href="#" onclick="javascript:showPlainTxt('javascript-10'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-10">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> my_zen_settings = <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'css'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'snippets'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'clearfix'</span>: <span style="color: #3366CC;">'.clearfix {<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;zoom: 1;/*for IE 5.5-7*/<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'}<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'.clearfix:after {/*for modern browser*/<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;content: &quot;.&quot;;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;display: block;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;height: 0px;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;clear: both;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;line-height: 0;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;visibility: hidden;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'} '</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'opacity'</span>: <span style="color: #3366CC;">'filter: alpha(opacity=50);<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'-moz-opacity:0.5;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'opacity:0.5;'</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'html'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'snippets'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'lib:jq14'</span>: <span style="color: #3366CC;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'lib:jq13'</span>: <span style="color: #3366CC;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt;&lt;/script&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'lib:swf'</span>: <span style="color: #3366CC;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject_src.js&quot;&gt;&lt;/script&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'lib:cf'</span>: <span style="color: #3366CC;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.js&quot;&gt;&lt;/script&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'lib:swf'</span>: <span style="color: #3366CC;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject_src.js&quot;&gt;&lt;/script&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'lib:html5'</span>: <span style="color: #3366CC;">'&lt;!--[if IE]&gt;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;script src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;<span style="color: #000099; font-weight: bold;">\n</span>&lt;![endif]--&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'mf:hc'</span>: <span style="color: #3366CC;">'&lt;div class=&quot;vcard&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;a class=&quot;url&quot; href=&quot;http://www.example.com/&quot; title=&quot;family-namelast-name&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;img style=&quot;float:left; margin-right:4px&quot; src=&quot;photo&quot; alt=&quot;family-namelast-name photo&quot; class=&quot;photo&quot; /&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;fn n&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;family-name&quot;&gt;family-name&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;given-name&quot;&gt;last-name&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;/a&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;a class=&quot;email&quot; href=&quot;mailto:email&quot; title=&quot;send to family-namelast-name&quot;&gt;email&lt;/a&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;div class=&quot;adr&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;postal-code&quot;&gt;123-4567&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;region&quot;&gt;region&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;locality&quot;&gt;locality&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;street-address&quot;&gt;street-address&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;div class=&quot;tel&quot;&gt;tel&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;/div&gt;'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'mf:hr'</span>: <span style="color: #3366CC;">'&lt;div class=&quot;hreview&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;span class=&quot;item&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;fn&quot;&gt;Name&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;span class=&quot;rating&quot;&gt;3.5&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;span class=&quot;reviewer&quot;&gt;Smith&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;span class=&quot;dtreviewed&quot;&gt;2009-01-06&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&nbsp; &nbsp;&lt;span class=&quot;summary&quot;&gt;&quot;Delicious.&quot;&lt;/span&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span> +</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;/div&gt;'</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="http://designblog.ecstudio.jp/download/my_zen_settings.js">my_zen_setting.js をダウンロードする</a></p>
<h4>まとめ</h4>
<p>Zen-Codingをさらに活用するために、是非これらの設定をおこなってみてください。<br />
おすすめのHTML/CSSスニペットや省略コードがあれば取り入れていきたいので、よければブログへのコメントか<a href="http://twitter.com/home?status=@hiloki%20http://bit.ly/9BCIQK%20%23ecdesignblog" title="この記事にTwitterでコメント" rel="nofollow">Twitterまでメッセージ</a>をください。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-aptana.html" title="知らない人は損してる？コーディングが3倍速くなるZen-Codingを導入してみた (2010/2/22 月曜日)">知らない人は損してる？コーディングが3倍速くなるZen-Codingを導入してみた</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html" title="Zen-Codingのショートカットをまとめてみました (2010/2/22 月曜日)">Zen-Codingのショートカットをまとめてみました</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/htmlcss/my-zen-coding.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fireworksを使いこなそう！ワンクリックでパスをアウトライン化</title>
		<link>http://designblog.ecstudio.jp/tutorial/fireworks-outline.html</link>
		<comments>http://designblog.ecstudio.jp/tutorial/fireworks-outline.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 13:31:10 +0000</pubDate>
		<dc:creator>端山 佳枝</dc:creator>
				<category><![CDATA[チュートリアル]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[fireworks]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[デザイン部]]></category>
		<category><![CDATA[効率化]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1379</guid>
		<description><![CDATA[Fireworksの「パス」ウィンドウには、作業効率をアップさせる機能がたくさん！
でも、正直たくさんありすぎて機能がいまいちわかりにくい！！
そこで自分のマニュアルもかねて、デザインブログで
少しずつ使い切れてない機能を紹介していきたいと思います。
今回は、「ワンクリックでパスをアウトライン化」と
その応用として「オシャレな文字づくり（テキストの縁取り）」の方法を紹介します。


ワンクリックでパスをアウトライン化
オブジェクトをポイント無しの状態で選択。

そして「パス」ウィンドウの「ストロークを塗りに変換」をクリック。

たったこれだけ！
アウトラインをとる前に、パスの線をお好みの太さにしておきましょう。
【応用】オシャレな文字づくり（テキストの縁取り）
テキストを打ち込みます。

ツールバー「テキスト」→「パスに変換」を選択。

そのあと、線と塗りを逆転させ塗りを透明にします。

線の太さをお好みに調整して、「パス」→「ストロークを塗りに変換」を選択。

するとテキストの縁がとれます。
あとは縁にグラデーションや装飾をつければ完成！

まだまだ「パス」ウィンドウには、作業効率をあげる機能がたくさん！
今後も引き続きご紹介していきます。

	関連した記事：
	
	知ってるようで、実は知らない?！ Fireworksの小技　Part2 
	FireworksCS4が重い・固まる現象を改善する方法 
	自動化のすすめ（FireworksCS3バッチ処理編） 
	簡単作業でスピードアップ！パフォーマンスアップまとめ 
	知ってるようで、実は知らない?！ Fireworksの小技 


]]></description>
			<content:encoded><![CDATA[<p>Fireworksの「パス」ウィンドウには、作業効率をアップさせる機能がたくさん！<br />
でも、正直たくさんありすぎて機能がいまいちわかりにくい！！</p>
<p>そこで自分のマニュアルもかねて、デザインブログで<br />
少しずつ使い切れてない機能を紹介していきたいと思います。</p>
<p>今回は、「ワンクリックでパスをアウトライン化」と<br />
その応用として「オシャレな文字づくり（テキストの縁取り）」の方法を紹介します。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/08.gif" alt="08" title="08" width="180" height="182" class="alignleft size-full wp-image-1388" /></p>
<p><span id="more-1379"></span></p>
<h4>ワンクリックでパスをアウトライン化</h4>
<p>オブジェクトをポイント無しの状態で選択。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/01.gif" alt="01" title="01" width="500" height="293" class="alignleft size-full wp-image-1381" /></p>
<p>そして「パス」ウィンドウの「ストロークを塗りに変換」をクリック。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/021.gif" alt="02" title="02" width="500" height="293" class="alignleft size-full wp-image-1389" /></p>
<p>たったこれだけ！<br />
アウトラインをとる前に、パスの線をお好みの太さにしておきましょう。</p>
<h4>【応用】オシャレな文字づくり（テキストの縁取り）</h4>
<p>テキストを打ち込みます。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/03.gif" alt="03" title="03" width="500" height="293" class="alignleft size-full wp-image-1383" /></p>
<p>ツールバー「テキスト」→「パスに変換」を選択。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/04.gif" alt="04" title="04" width="500" height="293" class="alignleft size-full wp-image-1384" /></p>
<p>そのあと、線と塗りを逆転させ塗りを透明にします。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/05.gif" alt="05" title="05" width="500" height="293" class="alignleft size-full wp-image-1385" /></p>
<p>線の太さをお好みに調整して、「パス」→「ストロークを塗りに変換」を選択。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/07.gif" alt="07" title="07" width="500" height="293" class="alignleft size-full wp-image-1387" /></p>
<p>するとテキストの縁がとれます。<br />
あとは縁にグラデーションや装飾をつければ完成！<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/08.gif" alt="08" title="08" width="329" height="332" class="alignleft size-full wp-image-1388" /></p>
<p>まだまだ「パス」ウィンドウには、作業効率をあげる機能がたくさん！<br />
今後も引き続きご紹介していきます。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/tutorial/how_to_fireworks2.html" title="知ってるようで、実は知らない?！ Fireworksの小技　Part2 (2009/11/16 月曜日)">知ってるようで、実は知らない?！ Fireworksの小技　Part2</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tutorial/busy_fireworks.html" title="FireworksCS4が重い・固まる現象を改善する方法 (2009/6/4 木曜日)">FireworksCS4が重い・固まる現象を改善する方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/fireworks-batch.html" title="自動化のすすめ（FireworksCS3バッチ処理編） (2008/10/6 月曜日)">自動化のすすめ（FireworksCS3バッチ処理編）</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tutorial/easy-speed-up.html" title="簡単作業でスピードアップ！パフォーマンスアップまとめ (2010/1/28 木曜日)">簡単作業でスピードアップ！パフォーマンスアップまとめ</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tutorial/how_to_fireworks.html" title="知ってるようで、実は知らない?！ Fireworksの小技 (2008/10/31 金曜日)">知ってるようで、実は知らない?！ Fireworksの小技</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/tutorial/fireworks-outline.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-Codingのショートカットをまとめてみました</title>
		<link>http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html</link>
		<comments>http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:22:15 +0000</pubDate>
		<dc:creator>谷 拓樹</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[zen-coding]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1354</guid>
		<description><![CDATA[前回の記事ではZen-Codingの導入方法について解説しました。
今回はZen-Codingの機能とそれを実行するためのショートカットの解説をします。
※2010/02/22現在の最新バージョン「Zen Coding for Aptana v0.6.0.1」を対象にしています。
なおAptana（Eclipse）の場合だとAptanaの方の機能に多くのショートカットが割り当てられているので、利用する環境によってはショートカットを変更する必要があります。Zen-Codingのデフォルトのショートカットが機能しない場合は、記事最後にまとめる変更方法を参考にしてください。

Expand Abbreviation（省略コードの展開）
Win：Ctrl+E
mac：Command+E
Zen-Codingの主な機能のひとつです。
テキスト表示
HTML:




div#content&#62;ul#global.nav&#62;li*3&#62;a 






こちらのサンプルの場合、末尾のaの後ろにフォーカスして、ショートカットを実行してください。
すると、
テキスト表示
HTML:




&#60;div id="content"&#62;


&#160; &#160; &#60;ul id="global" class="nav"&#62;


&#160; &#160; &#160; &#160; &#60;li&#62;&#60;a href=""&#62;&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#160; &#160; &#60;li&#62;&#60;a href=""&#62;&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#160; &#160; &#60;li&#62;&#60;a href=""&#62;&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#60;/ul&#62;


&#60;/div&#62; 






こうなります。
省略コードはCSSセレクタの書き方がわかっていると、すぐに書けるようになると思います。
#がid、
.がclass、
&#62;が子供の要素というような感じです。
またサンプルのように*はその後ろに数字をつけることで、その数だけ行が展開されます。
このサンプル以外にも色々な書き方はありますが、今回は以上で。
Wrap with Abbreviation（省略コードで包括）
Win：Ctrl+Shift+A
mac：Command+Shift+A
要素を省略コードでマークアップします。
例えば下記のようにマークアップされていないリストのような要素があった場合、
テキスト表示
HTML:




&#60;div&#62;


&#160; &#160; りんご


&#160; &#160; みかん


&#160; &#160; ばなな


&#60;/div&#62; 






divの中にフォーカスして実行。
するとダイアログが出ますので、そこに省略コードを記述。
例えば下記のように書きます。
テキスト表示
HTML:




li*&#62;a 






すると、
テキスト表示
HTML:




&#60;div&#62;


&#160; &#160; &#60;li&#62;&#60;a href=""&#62;りんご&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#60;li&#62;&#60;a href=""&#62;みかん&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#60;li&#62;&#60;a href=""&#62;ばなな&#60;/a&#62;&#60;/li&#62;


&#60;/div&#62; 






こうなります。素晴らしいですね。
Balance Tag Inward/Outward（要素の内側・外側を選択）
Balance Tag Inward
Win：Ctrl+Shift+D
mac：Command+Shift+D
Balance Tag [...]]]></description>
			<content:encoded><![CDATA[<p>前回の記事では<a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-aptana.html" target="_blank">Zen-Codingの導入方法</a>について解説しました。</p>
<p>今回はZen-Codingの機能とそれを実行するためのショートカットの解説をします。<br />
※2010/02/22現在の最新バージョン「Zen Coding for Aptana v0.6.0.1」を対象にしています。</p>
<p>なおAptana（Eclipse）の場合だとAptanaの方の機能に多くのショートカットが割り当てられているので、利用する環境によってはショートカットを変更する必要があります。Zen-Codingのデフォルトのショートカットが機能しない場合は、記事最後にまとめる変更方法を参考にしてください。<br />
<span id="more-1354"></span></p>
<h4>Expand Abbreviation（省略コードの展開）</h4>
<p>Win：<kbd>Ctrl+E</kbd><br />
mac：<kbd>Command+E</kbd></p>
<p>Zen-Codingの主な機能のひとつです。</p>
<div class="igBar"><span id="lhtml-25"><a href="#" onclick="javascript:showPlainTxt('html-25'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-25">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">div#content&gt;ul#global.nav&gt;li*3&gt;a </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こちらのサンプルの場合、末尾の<code>a</code>の後ろにフォーカスして、ショートカットを実行してください。<br />
すると、</p>
<div class="igBar"><span id="lhtml-26"><a href="#" onclick="javascript:showPlainTxt('html-26'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-26">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"content"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"global"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"nav"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こうなります。<br />
省略コードはCSSセレクタの書き方がわかっていると、すぐに書けるようになると思います。<br />
<code>#</code>が<code>id</code>、<br />
<code>.</code>が<code>class</code>、<br />
<code>&gt;</code>が子供の要素というような感じです。<br />
またサンプルのように<code>*</code>はその後ろに数字をつけることで、その数だけ行が展開されます。</p>
<p>このサンプル以外にも色々な書き方はありますが、今回は以上で。</p>
<h4>Wrap with Abbreviation（省略コードで包括）</h4>
<p>Win：<kbd>Ctrl+Shift+A</kbd><br />
mac：<kbd>Command+Shift+A</kbd></p>
<p>要素を省略コードでマークアップします。</p>
<p>例えば下記のようにマークアップされていないリストのような要素があった場合、</p>
<div class="igBar"><span id="lhtml-27"><a href="#" onclick="javascript:showPlainTxt('html-27'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-27">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; りんご</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; みかん</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ばなな</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><code>div</code>の中にフォーカスして実行。<br />
するとダイアログが出ますので、そこに省略コードを記述。<br />
例えば下記のように書きます。</p>
<div class="igBar"><span id="lhtml-28"><a href="#" onclick="javascript:showPlainTxt('html-28'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-28">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">li*&gt;a </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>すると、</p>
<div class="igBar"><span id="lhtml-29"><a href="#" onclick="javascript:showPlainTxt('html-29'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-29">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>りんご<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>みかん<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>ばなな<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こうなります。素晴らしいですね。</p>
<h4>Balance Tag Inward/Outward（要素の内側・外側を選択）</h4>
<h5>Balance Tag Inward</h5>
<p>Win：<kbd>Ctrl+Shift+D</kbd><br />
mac：<kbd>Command+Shift+D</kbd></p>
<h5>Balance Tag Outward</h5>
<p>Win：<kbd>Ctrl+D</kbd><br />
mac：<kbd>Command+D</kbd></p>
<p>実行するとフォーカスした箇所の要素から、<br />
Inwardは内側の要素を、<br />
Outwardは外側の要素を選択します。</p>
<p>編集中の要素の開始タグと終了タグを認識するのに便利です。</p>
<p>[2010/02/23 追記]<br />
ソースコードにもよるかもしれないですが、きれいに要素を認識してくれない場合があるようです。<br />
もしかしたら仕様が少し違うかもしれないので、こちらの機能について詳しい方がいらっしゃったらコメントなどいただけたら嬉しいです。</p>
<h4>Go to Next/Previous Edit Point（編集箇所への移動）</h4>
<h5>Next Edit Point</h5>
<p>Win：<kbd>Alt+Ctrl+]</kbd><br />
mac：<kbd>Option+Control+]</kbd></p>
<h5>Previous Edit Point</h5>
<p>Win：<kbd>Alt+Ctrl+[</kbd><br />
mac：<kbd>Option+Control+[</kbd></p>
<p>実行すると空の属性や空の要素、空行を移動することができます。</p>
<h4>Update &lt;img&gt; Size（画像サイズの取得）</h4>
<p>Win：<kbd>Ctrl+I</kbd><br />
mac：<kbd>Command+I</kbd></p>
<p><code>img</code>の<code>src</code>属性で指定したファイルのサイズを取得します。</p>
<div class="igBar"><span id="lhtml-30"><a href="#" onclick="javascript:showPlainTxt('html-30'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-30">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"sample.jpg"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これが、</p>
<div class="igBar"><span id="lhtml-31"><a href="#" onclick="javascript:showPlainTxt('html-31'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-31">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"sample.jpg"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"185"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"300"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このように実行すればサイズが取得されます。<br />
<code>img</code>要素内にフォーカスして実行すればいいのですが、画像パスが正しくないと取得されません。<br />
パスは相対パス、絶対パスの両方に対応しています。</p>
<h4>Merge Lines（複数の要素を1行にする）</h4>
<p>Win：<kbd>Ctrl+L</kbd><br />
mac：<kbd>Control+L</kbd></p>
<div class="igBar"><span id="lhtml-32"><a href="#" onclick="javascript:showPlainTxt('html-32'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-32">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"list1"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"list2"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"list3"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こういう複数行に展開された要素があった場合に、まとめたい要素を選択状態にして実行すると、</p>
<div class="igBar"><span id="lhtml-33"><a href="#" onclick="javascript:showPlainTxt('html-33'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-33">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"list1"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"list2"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"list3"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このようになります。</p>
<h4>Remove Tag（タグの削除）</h4>
<p>Win：<kbd>Ctrl+Shift+I</kbd><br />
mac：<kbd>Command+Shift+I</kbd></p>
<p>これは要素の内容をそのままに、タグだけを削除します。<br />
対象のタグにフォーカスして実行すれば削除されます。</p>
<div class="igBar"><span id="lhtml-34"><a href="#" onclick="javascript:showPlainTxt('html-34'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-34">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"title"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"next"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こちらの例の場合、<code>span</code>にフォーカスして実行すると、</p>
<div class="igBar"><span id="lhtml-35"><a href="#" onclick="javascript:showPlainTxt('html-35'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-35">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"title"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"next"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このようになります。</p>
<h4>Split/Join Tag（タグの結合・分解）</h4>
<p>Win：<kbd>Ctrl+U</kbd><br />
mac：<kbd>Command+U</kbd></p>
<div class="igBar"><span id="lhtml-36"><a href="#" onclick="javascript:showPlainTxt('html-36'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-36">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"Split"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このような記述の場合に実行すると</p>
<div class="igBar"><span id="lhtml-37"><a href="#" onclick="javascript:showPlainTxt('html-37'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-37">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"Split"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このようになります。<br />
逆に後者で実行すると、前者のように分解されます。</p>
<p>個人的にはちょっと利用頻度は少ないかなと思います。</p>
<h4>Toggle Comment（コメントアウトの実行・解除）</h4>
<p>Win：<kbd>Ctrl+Shift+/</kbd><br />
mac：<kbd>Command+Shift+/</kbd></p>
<p>フォーカスしている要素をコメントアウトします。</p>
<p>以上がZen-CodingのWikiで解説されている主な機能となります。<br />
<a href="http://code.google.com/p/zen-coding/wiki/Actions" target="_blank">http://code.google.com/p/zen-coding/wiki/Actions</a></p>
<h4>紹介したショートカットで機能しない場合は？</h4>
<p>冒頭に書いたよう、Aptana（Eclipse）の場合にはすでに色々キーが設定されてしまっていることが多いので、設定画面から変更するようにしましょう。<br />
設定変更は2つあります。</p>
<ul class="list">
<li>Aptana側を変更する</li>
<li>Zen-Coding側を変更する</li>
</ul>
<h5>Aptana側を変更する場合</h5>
<p>「ウインドウ」＞「設定」＞「一般」＞「キー」<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/100222zen-coding_key_01.png" class="capture" /></p>
<p>ここですべてのショートカットキーが設定されているので、紹介したキーに該当したコマンドをアンバインドしてください。<br />
設定後は再起動しましょう。</p>
<h5>Zen-Coding側を変更する</h5>
<p>普段から使っているキーをZen-Codingのために変えたくないという人は、それぞれのJavascript上の記述を編集することで、ショートカットを変更できます。</p>
<p>例えば Expand Abbreviation の場合であれば、scriptsフォルダにあるExpand Abbreviation.jsの冒頭5行目あたりを編集すればOKです。</p>
<div class="igBar"><span id="ljavascript-38"><a href="#" onclick="javascript:showPlainTxt('javascript-38'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-38">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">* Key: M1+E </div>
</li>
</ol>
</div>
</div>
</div>
<p>
これがデフォルトの記述なのですが、この<strong>M1</strong>というのはAptana（Eclipse）で定義されているキーです。<br />
Windowsの場合は<kbd>Ctrl</kbd>、Macの場合は<kbd>Command</kbd>に該当します。<br />
ここで定義できるショートカットキーなどは下記のページを参考にしてください。</p>
<p><a href="http://docs.aptana.com/docs/index.php/Eclipse_Monkey_scripting_with_Ruby#Adding_metadata_to_your_script" target="_blank">Eclipse Monkey scripting with Ruby - Aptana</a></p>
<h4>まとめ</h4>
<p>これらを完全に使いこなすまでには慣れが必要ですが、HTML/CSSを扱える人であればすぐに慣れるでしょう。<br />
Aptanaを中心に紹介していますが、キーは違えど他のアプリケーションでも活用できるのでぜひ試してみてください。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-aptana.html" title="知らない人は損してる？コーディングが3倍速くなるZen-Codingを導入してみた (2010/2/22 月曜日)">知らない人は損してる？コーディングが3倍速くなるZen-Codingを導入してみた</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/css-header-tips.html" title="見出しをCSSでシンプルに装飾するtips (2007/8/17 金曜日)">見出しをCSSでシンプルに装飾するtips</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/pagenation.html" title="ページネーションのマークアップ考察 (2009/6/10 水曜日)">ページネーションのマークアップ考察</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/page_editor.html" title="ブラウザ上でWebページをリアルタイム編集できる簡単な方法 (2010/3/4 木曜日)">ブラウザ上でWebページをリアルタイム編集できる簡単な方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/my-zen-coding.html" title="Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法 (2010/3/3 水曜日)">Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>知らない人は損してる？コーディングが3倍速くなるZen-Codingを導入してみた</title>
		<link>http://designblog.ecstudio.jp/htmlcss/zen-coding-aptana.html</link>
		<comments>http://designblog.ecstudio.jp/htmlcss/zen-coding-aptana.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 03:37:55 +0000</pubDate>
		<dc:creator>谷 拓樹</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[zen-coding]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1324</guid>
		<description><![CDATA[最近になって急に盛り上がってきているZen-Codingをみなさんご存知ですか？
Zen-CodingはHTML/CSSをショートカット＋スニペットで簡略化してコードを書くことができるライブラリです。
独立したテキストエディタソフトではなく、既存のHTML/CSSエディタにプラグイン的に導入するものです。
Zen-Codingというのもがどういうもので、どんなすごいものなんだ、というのはこちらの動画を見てください。
※音が出ますのでご注意ください。

Zen Coding v0.5 from Sergey Chikuyonok on Vimeo
一体何がおこわれているのか？という感じだと思われますが、今回の記事ではこのZen-Codingの導入方法と使い方の一例を紹介します。
Zen-Codingに対応しているエディタは色々あるのですが、今回は弊社の開発環境しているAptana Studioでの設定の仕方を説明します。
※弊社の場合は Eclipseのプラグインとしてインストールしていますが、それでも問題はありません。
[追記：2010/02/24]
AptanaプラグインをつかっていないEclipseでも導入できるようです。（otchyさんありがとうございます。）
http://www.otchy.net/20100224/zen-coding-for-general-eclipse/
※導入後の使い方などは次の記事を参照ください。
Zen-Codingのショートカットをまとめてみました
Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法

Zen-Codingのダウンロード
Downloads - zen-coding - Project Hosting on Google Code
http://code.google.com/p/zen-coding/downloads/list
色々なテキストエディタ、オーサリングツール向けに提供されていますが、今回はfor Aptanaを選択。
（2010/02/19現在の最新は  Zen Coding for Aptana v0.6.0.1）

ファイルを展開すると、中には様々なjsファイルがあると思います。
これがZen-Codingの中身です。
AptanaにZen-Codingのプロジェクトを作る
Aptana（またはEclipse）で新規のプロジェクトを作ります。
プロジェクト名は何でも良いですが、今回は「zen-coding」とします。
（ファイル > 新規 > プロジェクト）

作成した「zen-coding」プロジェクトに「scripts」というフォルダを作ります。

そしてその中に先程ダウンロードしたファイル一式を格納します。
※Windowsの場合、「__MACOSX」というフォルダも存在するかもしれないですが、それは不要です。
するとこんな感じになりますね。

これだけで完了です。簡単ですね。
ここまでできたら、一度Aptana（Eclipse）を再起動しましょう。
少しだけ使い方をレクチャー
ここまでの手順を終えたら、AptanaでHTMLファイルを作成し、下記のような書き方を試してみてください。
一例ですが、
テキスト表示
HTML:




div#content&#62;ul#global.nav&#62;li*3&#62;a 






こちらのような一行の末尾で、「Ctrl+E」を押してみてください。
（Macの場合は「Command+E」だと思います）
すると、
テキスト表示
HTML:




&#60;div id="content"&#62;


&#160; &#160; &#60;ul id="global" class="nav"&#62;


&#160; &#160; &#160; &#160; &#60;li&#62;&#60;a href=""&#62;&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#160; &#160; &#60;li&#62;&#60;a href=""&#62;&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#160; &#160; &#60;li&#62;&#60;a href=""&#62;&#60;/a&#62;&#60;/li&#62;


&#160; &#160; &#60;/ul&#62;


&#60;/div&#62; 






上記のようなコードが展開されましたか？
Zen-Codingではこのように、省略して書いたコードを構造的なHTMLに変換してくれます。
[2010/02/22 追記]
環境によって、Ctrl+Eでは実行できません。その場合の対処は次の記事にて紹介しています。
このような技が他にも色々あるのですが、そちらは記事最後に詳しい記事リンクをまとめますので今回は導入編として修正すべき箇所ひとつ追加説明しておきます。
日本語向けにスクリプトの一部を修正をする
デフォルトではHTMLが英語圏向けの内容になっています。
テキスト表示
HTML:




&#60;!DOCTYPE html [...]]]></description>
			<content:encoded><![CDATA[<p>最近になって急に盛り上がってきているZen-Codingをみなさんご存知ですか？<br />
Zen-CodingはHTML/CSSをショートカット＋スニペットで簡略化してコードを書くことができるライブラリです。<br />
独立したテキストエディタソフトではなく、既存のHTML/CSSエディタにプラグイン的に導入するものです。</p>
<p>Zen-Codingというのもがどういうもので、どんなすごいものなんだ、というのはこちらの動画を見てください。<br />
※音が出ますのでご注意ください。<br />
<object width="400" height="275"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7405114&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7405114&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="275"></embed></object><br />
<a href="http://vimeo.com/7405114">Zen Coding v0.5</a> from <a href="http://vimeo.com/user2060676">Sergey Chikuyonok</a> on <a href="http://vimeo.com">Vimeo</a></p>
<p>一体何がおこわれているのか？という感じだと思われますが、今回の記事ではこの<strong>Zen-Coding</strong>の導入方法と使い方の一例を紹介します。</p>
<p>Zen-Codingに対応しているエディタは色々あるのですが、今回は弊社の開発環境しているAptana Studioでの設定の仕方を説明します。<br />
※弊社の場合は Eclipseのプラグインとしてインストールしていますが、それでも問題はありません。</p>
<p>[追記：2010/02/24]<br />
AptanaプラグインをつかっていないEclipseでも導入できるようです。（otchyさんありがとうございます。）<br />
<a href="http://www.otchy.net/20100224/zen-coding-for-general-eclipse/">http://www.otchy.net/20100224/zen-coding-for-general-eclipse/</a></p>
<p>※導入後の使い方などは次の記事を参照ください。<br />
<a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html">Zen-Codingのショートカットをまとめてみました</a><br />
<a href="http://designblog.ecstudio.jp/htmlcss/my-zen-coding.html">Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法</a><br />
<span id="more-1324"></span></p>
<h4>Zen-Codingのダウンロード</h4>
<p>Downloads - zen-coding - Project Hosting on Google Code<br />
<a href="http://code.google.com/p/zen-coding/downloads/list" target="_blank">http://code.google.com/p/zen-coding/downloads/list</a></p>
<p>色々なテキストエディタ、オーサリングツール向けに提供されていますが、今回は<em>for Aptana</em>を選択。<br />
（2010/02/19現在の最新は<em>  Zen Coding for Aptana v0.6.0.1</em>）<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/100222zen-coding_01.png" class="capture" /></p>
<p>ファイルを展開すると、中には様々なjsファイルがあると思います。<br />
これがZen-Codingの中身です。</p>
<h4>AptanaにZen-Codingのプロジェクトを作る</h4>
<p>Aptana（またはEclipse）で新規のプロジェクトを作ります。<br />
プロジェクト名は何でも良いですが、今回は「zen-coding」とします。</p>
<p>（ファイル > 新規 > プロジェクト）<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/100222zen-coding_02.jpg" class="capture" /></p>
<p>作成した「zen-coding」プロジェクトに「scripts」というフォルダを作ります。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/100222zen-coding_03.jpg" class="capture" /></p>
<p>そしてその中に先程ダウンロードしたファイル一式を格納します。<br />
※Windowsの場合、「__MACOSX」というフォルダも存在するかもしれないですが、それは不要です。</p>
<p>するとこんな感じになりますね。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/100222zen-coding_04.jpg" class="capture" /></p>
<p>これだけで完了です。簡単ですね。<br />
ここまでできたら、一度Aptana（Eclipse）を再起動しましょう。</p>
<h4>少しだけ使い方をレクチャー</h4>
<p>ここまでの手順を終えたら、AptanaでHTMLファイルを作成し、下記のような書き方を試してみてください。</p>
<p>一例ですが、</p>
<div class="igBar"><span id="lhtml-44"><a href="#" onclick="javascript:showPlainTxt('html-44'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-44">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">div#content&gt;ul#global.nav&gt;li*3&gt;a </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こちらのような一行の末尾で、「Ctrl+E」を押してみてください。<br />
（Macの場合は「Command+E」だと思います）</p>
<p>すると、</p>
<div class="igBar"><span id="lhtml-45"><a href="#" onclick="javascript:showPlainTxt('html-45'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-45">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"content"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"global"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"nav"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>上記のようなコードが展開されましたか？<br />
Zen-Codingではこのように、省略して書いたコードを構造的なHTMLに変換してくれます。</p>
<p>[2010/02/22 追記]<br />
環境によって、Ctrl+Eでは実行できません。その場合の対処は<a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html">次の記事</a>にて紹介しています。</p>
<p>このような技が他にも色々あるのですが、そちらは記事最後に詳しい記事リンクをまとめますので今回は導入編として修正すべき箇所ひとつ追加説明しておきます。</p>
<h4>日本語向けにスクリプトの一部を修正をする</h4>
<p>デフォルトではHTMLが英語圏向けの内容になっています。</p>
<div class="igBar"><span id="lhtml-46"><a href="#" onclick="javascript:showPlainTxt('html-46'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-46">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html</span></a> xmlns=<span style="color: #ff0000;">"http://www.w3.org/1999/xhtml"</span> xml:<span style="color: #000066;">lang</span>=<span style="color: #ff0000;">"en"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">http-equiv</span>=<span style="color: #ff0000;">"Content-Type"</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">"text/html;charset=UTF-8"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">～省略～</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><code>xml:lang="en"</code>と<code>charset=UTF-8"</code>のところですね。<br />
こちらを修正するには、先程「scripts」フォルダにある<strong>zen-setting.js</strong>というファイルを開き、その中の11行目あたりにある記述を書き換えてください。</p>
<div class="igBar"><span id="ljavascript-47"><a href="#" onclick="javascript:showPlainTxt('javascript-47'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-47">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #3366CC;">'variables'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'lang'</span>: <span style="color: #3366CC;">'en'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'locale'</span>: <span style="color: #3366CC;">'en-US'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'charset'</span>: <span style="color: #3366CC;">'UTF-8'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'profile'</span>: <span style="color: #3366CC;">'xhtml'</span>, </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>↓</p>
<div class="igBar"><span id="ljavascript-48"><a href="#" onclick="javascript:showPlainTxt('javascript-48'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-48">
<div class="javascript">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #3366CC;">'variables'</span>: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'lang'</span>: <span style="color: #3366CC;">'ja'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'locale'</span>: <span style="color: #3366CC;">'ja'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'charset'</span>: <span style="color: #3366CC;">'UTF-8'</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #3366CC;">'profile'</span>: <span style="color: #3366CC;">'xhtml'</span>, </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>書き換えた後は再起動すれば反映されます。<br />
今回は<code>ec</code>から<code>ja</code>への修正例ですが、必要があれば<code>charset</code>も変更してください。</p>
<h4>まとめ</h4>
<p>以上がAptanaに導入するための手順と設定です。<br />
今回の記事タイトルに偽りなく、マスターすると<strong>本当にコーディングのスピードがあがります。</strong></p>
<p>実際に導入して使ってみよう！という方のためにマニュアルや参考リンクをまとめておきます。</p>
<h5>基本記法</h5>
<p>Zen Actions<br />
<a href="http://code.google.com/p/zen-coding/wiki/Actions" target="_blank">http://code.google.com/p/zen-coding/wiki/Actions</a><br />
こちらについては次の記事で解説しています。<br />
<a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html">Zen-Codingのショートカットをまとめてみました</a></p>
<p>Zen HTML Elements<br />
<a href="http://code.google.com/p/zen-coding/wiki/ZenHTMLElementsEn" target="_blank">http://code.google.com/p/zen-coding/wiki/ZenHTMLElementsEn</a></p>
<p>Zen HTML Selectors<br />
<a href="http://code.google.com/p/zen-coding/wiki/ZenHTMLSelectorsEn" target="_blank">http://code.google.com/p/zen-coding/wiki/ZenHTMLSelectorsEn</a></p>
<p>Zen CSS properties<br />
<a href="http://code.google.com/p/zen-coding/wiki/ZenCSSPropertiesEn" target="_blank">http://code.google.com/p/zen-coding/wiki/ZenCSSPropertiesEn</a></p>
<h5>Wordpressプラグイン</h5>
<p>WordPressにZen Codingを導入するプラグイン「WP Zen-Coding」 - Rewish<br />
<a href="http://rewish.org/wp/zen_coding" target="_blank">http://rewish.org/wp/zen_coding</a><br />
Wordpressの投稿画面でZen-Codingが使えるようになります。</p>
<h5>MovableTypeプラグイン</h5>
<p>MT Zen-Coding - Movable Type プラグイン<br />
<a href="http://www.tinybeans.net/blog/download/mt-plugin/mt-zen-coding.html" target="_blank">http://www.tinybeans.net/blog/download/mt-plugin/mt-zen-coding.html</a><br />
MovableTypeの記事投稿画面やテンプレート編集画面などでZen-Codingが使えるようになります。</p>
<h5>その他</h5>
<p>gaspanik weblog<br />
<a href="http://blog.gaspanik.com/" target="_blank">http://blog.gaspanik.com/</a><br />
こもりさんについては、不定期でライブコーディングを<br />
<a href="http://www.ustream.tv/channel/cipher" target="_blank">Ustreamでおこなわれています。</a><br />
実際に見てみると感動ですよ！</p>
<p>基本記法について、H20スペースのたにぐちさんも分かりやすくまとめられています。<br />
Zen-Condingの基本文法をおさらい<br />
<a href="http://h2o-space.com/blog/2002" target="_blank">http://h2o-space.com/blog/2002</a></p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/htmlcss/zen-coding-shortcut-key.html" title="Zen-Codingのショートカットをまとめてみました (2010/2/22 月曜日)">Zen-Codingのショートカットをまとめてみました</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/css-header-tips.html" title="見出しをCSSでシンプルに装飾するtips (2007/8/17 金曜日)">見出しをCSSでシンプルに装飾するtips</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/pagenation.html" title="ページネーションのマークアップ考察 (2009/6/10 水曜日)">ページネーションのマークアップ考察</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/page_editor.html" title="ブラウザ上でWebページをリアルタイム編集できる簡単な方法 (2010/3/4 木曜日)">ブラウザ上でWebページをリアルタイム編集できる簡単な方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/my-zen-coding.html" title="Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法 (2010/3/3 水曜日)">Zen-Codingでさらにコーディングを1.5倍くらい速くするためのカスタマイズ方法</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/htmlcss/zen-coding-aptana.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>2010年の海外のウェブデザイントレンド</title>
		<link>http://designblog.ecstudio.jp/htmlcss/2010-webdesign-trend.html</link>
		<comments>http://designblog.ecstudio.jp/htmlcss/2010-webdesign-trend.html#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:19:57 +0000</pubDate>
		<dc:creator>谷 拓樹</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[グラフィックデザイン]]></category>
		<category><![CDATA[trend]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1310</guid>
		<description><![CDATA[WebDesignerWallより、2010年のデザイントレンド予測の記事がありましたので、その中身を見ていきたいとおもいます。
「2010年のウェブデザインはより面白く、実験的なものが増える」とのこと。
CSS3やHTML5への注目が集まり、新しいビジュアル・機能を持ったウェブデザインを試しているサイトが増えてきています。
ビジュアルの傾向でいいますと、手書きスケッチ、大きな背景のサイトというのは減少傾向にあり、一方でセリフ書体のフォントを使ったデザインや、テクスチャーを使ったサイトが人気のようです。
またCSS3（と、実装してくれているブラウザ）のおかげで、角丸やRGBAプロパティを使った半透明表現、ドロップシャドウ効果などもたくさん簡単に使えるようになってきています。
そして特に海外では顕著ですが、スマートフォン向けのデザインを提供するサイトも増えてきています。
実際にそれらのトレンドに当てはまるサイトを紹介していきます。（一部）

セリフ書体フォントのデザイン
2000年～はVersanaやArialなど、サンセリフ書体のフォントデザインが多かったのですが、2010年からはセリフ書体が注目を浴びるでしょう。
The New York Times - Breaking News, World News &#038; Multimedia
http://www.nytimes.com/
陳 Jon Tan
http://jontangerine.com/
Sushi &#038; Robots, by Jina Bolton
http://sushiandrobots.com/
大きなヘッダー
大きなヘッダーを取り入れたサイトはここ数年増えてきていますが、さらに人気が出そうです。
N.Design Studio &#124; Design Blog &#038; Portfolio
http://www.ndesign-studio.com/
Carsonified presents The Future of Web Apps Conference Miami, Florida 2010
http://carsonified.com/
Web design and CSS training, workshops and DVDs for web designers &#124; For A Beautiful Web
http://www.forabeautifulweb.com/
Webフォントを使用
CSS3のWebFont（@font-face ）を使うことで、閲覧環境のデバイスフォントではなく、サイト側で指定したフォントで文字を表現することができます。
Typekit、Font Squirrelなど無償・有償で提供するサイトも増えています。
ちなみに欧文フォントだけでなく、日本語フォントでもオープンソースで利用できるものが増えてきています。
自由に使えるオープンソースの日本語フォント - SourceForge.JP Magazine
Elliot Jay [...]]]></description>
			<content:encoded><![CDATA[<p>WebDesignerWallより、2010年のデザイントレンド予測の記事がありましたので、その中身を見ていきたいとおもいます。</p>
<p>「2010年のウェブデザインはより面白く、実験的なものが増える」とのこと。<br />
CSS3やHTML5への注目が集まり、新しいビジュアル・機能を持ったウェブデザインを試しているサイトが増えてきています。<br />
ビジュアルの傾向でいいますと、手書きスケッチ、大きな背景のサイトというのは減少傾向にあり、一方でセリフ書体のフォントを使ったデザインや、テクスチャーを使ったサイトが人気のようです。</p>
<p>またCSS3（と、実装してくれているブラウザ）のおかげで、角丸やRGBAプロパティを使った半透明表現、ドロップシャドウ効果などもたくさん簡単に使えるようになってきています。<br />
そして特に海外では顕著ですが、スマートフォン向けのデザインを提供するサイトも増えてきています。</p>
<p>実際にそれらのトレンドに当てはまるサイトを紹介していきます。（一部）<br />
<span id="more-1310"></span></p>
<h4>セリフ書体フォントのデザイン</h4>
<p>2000年～はVersanaやArialなど、サンセリフ書体のフォントデザインが多かったのですが、2010年からはセリフ書体が注目を浴びるでしょう。</p>
<p>The New York Times - Breaking News, World News &#038; Multimedia<br />
<a href="http://www.nytimes.com/" target="_blank">http://www.nytimes.com/</a></p>
<p>陳 Jon Tan<br />
<a href="http://jontangerine.com/" target="_blank">http://jontangerine.com/</a></p>
<p>Sushi &#038; Robots, by Jina Bolton<br />
<a href="http://sushiandrobots.com/" target="_blank">http://sushiandrobots.com/</a></p>
<h4>大きなヘッダー</h4>
<p>大きなヘッダーを取り入れたサイトはここ数年増えてきていますが、さらに人気が出そうです。</p>
<p>N.Design Studio | Design Blog &#038; Portfolio<br />
<a href="http://www.ndesign-studio.com/" target="_blank">http://www.ndesign-studio.com/</a></p>
<p>Carsonified presents The Future of Web Apps Conference Miami, Florida 2010<br />
<a href="http://carsonified.com/" target="_blank">http://carsonified.com/</a></p>
<p>Web design and CSS training, workshops and DVDs for web designers | For A Beautiful Web<br />
<a href="http://www.forabeautifulweb.com/" target="_blank">http://www.forabeautifulweb.com/</a></p>
<h4>Webフォントを使用</h4>
<p>CSS3のWebFont（@font-face ）を使うことで、閲覧環境のデバイスフォントではなく、サイト側で指定したフォントで文字を表現することができます。<br />
<a href="http://typekit.com/">Typekit</a>、<a href="http://www.fontsquirrel.com/fontface">Font Squirrel</a>など無償・有償で提供するサイトも増えています。<br />
ちなみに欧文フォントだけでなく、日本語フォントでもオープンソースで利用できるものが増えてきています。<br />
<a href="http://sourceforge.jp/magazine/09/04/27/0313213">自由に使えるオープンソースの日本語フォント - SourceForge.JP Magazine</a></p>
<p>Elliot Jay Stocks.<br />
<a href="http://elliotjaystocks.com/" target="_blank">http://elliotjaystocks.com/</a></p>
<p>tap tap tap<br />
<a href="http://www.taptaptap.com/" target="_blank">http://www.taptaptap.com/</a></p>
<h4>微妙なテクスチャの背景</h4>
<p>大きな背景画像を使ったサイトは減少傾向にあり、それに変わって増えてきているのはあまり派手ではない、地味で微妙なテクスチャを背景画像に取り入れるサイトが増えました。模様は小さいノイズのようなものや、少しグランジっぽいもの（かすれたもの）が多いです。</p>
<p>iSaidWhat?!<br />
<a href="http://www.tapparatus.com/isaidwhat/" target="_blank">http://www.tapparatus.com/isaidwhat/</a></p>
<p>Sibling Rivalry | A Speck Brothers Wine.<br />
<a href="http://www.siblingrivalrywine.ca/" target="_blank">http://www.siblingrivalrywine.ca/</a></p>
<p>Analog<br />
<a href="http://analog.coop/" target="_blank">http://analog.coop/</a></p>
<h4>ミニマル、グリッドなデザイン</h4>
<p>ミニマル、というのが日本語的に表現が難しいですが、「小さな」デザインのサイトのことです。<br />
この「小さい」というのは単純にサイト幅が狭いというだけでなく、色や過度な装飾は抑えたシンプルなデザインも含めるようです。<br />
このミニマルと同様に、グリッドが計算されて整列されたデザイン、余白を生かしたデザインが増えています。<br />
ミニマルとグリッドを合わせたデザインも多い傾向にあります。</p>
<p>FRKT<br />
<a href="http://www.forrykt.com/" target="_blank">http://www.forrykt.com/</a></p>
<p>Heartworker<br />
<a href="http://www.heartworker.com/" target="_blank">http://www.heartworker.com/</a></p>
<p>screen capture<br />
<a href="http://www.wilsonminer.com/" target="_blank">http://www.wilsonminer.com/</a></p>
<h4>CSS3を取り入れる</h4>
<p>CSSはすべてのブラウザでサポートされていないですが、多くのウェブデザイナーが実験的に自分のサイトやクライアントのサイトに取り入れています。</p>
<h5>CSS3 アニメーション</h5>
<p>Google ChromeまたはSafari最新版で閲覧してください、右上の円形が動きます。<br />
他のブラウザだと静止した丸というだけで、閲覧に支障はありません。<br />
こうした遊びのような形で取り入れるのは面白いです。<br />
<a href="http://neutroncreations.com/blog/" target="_blank">http://neutroncreations.com/blog/</a></p>
<h5>角丸とドロップシャドウ</h5>
<div class="igBar"><span id="lcss-52"><a href="#" onclick="javascript:showPlainTxt('css-52'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-52">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.roundCorner </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-moz-border-radius: 10px; <span style="color: #808080; font-style: italic;">/* Firefox用 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-webkit-border-radius: 10px; <span style="color: #808080; font-style: italic;">/* Webkit（Chrome,Safari用） */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;border-radius: 10px; <span style="color: #808080; font-style: italic;">/* 半径10pxの角丸 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.dropShadow </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-moz-box-shadow: <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 4px #999; <span style="color: #808080; font-style: italic;">/* Firefox用 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-webkit-box-shadow: <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 4px #999; <span style="color: #808080; font-style: italic;">/* Webkit（Chrome,Safari用） */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-box-shadow: <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 4px #999; <span style="color: #808080; font-style: italic;">/* 横方向のオフセット 縦方向のオフセット ぼかしの半径 影の色 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
角丸とドロップシャドウはCSS3の中でも頻用されるプロパティです。<br />
Tap Tapas<br />
<a href="http://www.taptapas.com/" target="_blank">http://www.taptapas.com/</a></p>
<p>CSS-Tricks<br />
<a href="http://css-tricks.com/" target="_blank">http://css-tricks.com/</a></p>
<h5>テキストシャドウ</h5>
<div class="igBar"><span id="lcss-53"><a href="#" onclick="javascript:showPlainTxt('css-53'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-53">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.textShadow </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-moz-<span style="color: #000000; font-weight: bold;">text-shadow</span>: <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 4px #999; <span style="color: #808080; font-style: italic;">/* Firefox用 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-webkit-<span style="color: #000000; font-weight: bold;">text-shadow</span>: <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 4px #999; <span style="color: #808080; font-style: italic;">/* Webkit（Chrome,Safari用） */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;-<span style="color: #000000; font-weight: bold;">text-shadow</span>: <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 4px #999; <span style="color: #808080; font-style: italic;">/* 横方向のオフセット 縦方向のオフセット ぼかしの半径 影の色 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
テキストにドロップシャドウの効果を与えます。<br />
使われ方としてはその言葉のとおりテキストに影を落として立体的に浮かせる効果もありますが<br />
影の角度や色を調整すれば、文字部分がへこんでいるような効果を出すことができます。<br />
グラデーションなどと組み合わせるとよりキレイに見えるようになります。</p>
<p>tweetCC | Publish &#038; license tweets with Creative Commons<br />
<a href="http://www.tweetcc.com/" target="_blank">http://www.tweetcc.com/</a></p>
<p>Adii Rockstar | Creator of Rockstar Awesomeness<br />
<a href="http://adiirockstar.com/" target="_blank">http://adiirockstar.com/</a></p>
<h4>半透明効果を使う</h4>
<p>CSSにより対象の要素の透過度を調整できます。<br />
RGBAプロパティまたはOpacityプロパティを使うとこの効果が表現できますが、OpacityよりもRGBAにより透明表現をするケースが多いです。<br />
理由はOpacityの場合だと、指定した要素だけでなく、包括する子要素にも影響してしまうので、背景色だけを透過したい！という場合はRGBAを使うのが好ましいです。</p>
<div class="igBar"><span id="lcss-54"><a href="#" onclick="javascript:showPlainTxt('css-54'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-54">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.alpha </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #000000; font-weight: bold;">background</span>: rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">255</span>,<span style="color: #cc66cc;color:#800000;">255</span>,<span style="color: #cc66cc;color:#800000;">255</span>,<span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">75</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">/* 白色,75% */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h4>モバイル向けデザイン</h4>
<p>2007年にiPhoneが世の中に出てから、多くの人がモバイル向けデザインについての話題を取り上げました。現在ではiPhoneなどのスマートフォンはCSSやJavaScriptをサポートしているので、PC向けのデザインよりも未来のデザインを作ることができます。多くのサイトがこうしたスマートフォン向けのデザインを提供し始めています。<br />
※iPhoneをお持ちの方は実際にiPhoneでアクセスすると良いでしょう。</p>
<p>Social Media News and Web Tips – Mashable – The Social Media Guide<br />
<a href="http://mashable.com/" target="_blank">http://mashable.com/</a></p>
<p>Hello | Erskine Design（モバイル版URL）<br />
<a href="http://m.erskinedesign.com/" target="_blank">http://m.erskinedesign.com/</a></p>
<p>Nike Lab<br />
<a href="http://www.nike.com/nikelab/" target="_blank">http://www.nike.com/nikelab/</a></p>
<h4>まとめ</h4>
<p>2010年はCSS3やHTML5といった新技術を取り入れて新しい表現を追求していくWebデザイナーが多くいるようです。<br />
CSS3を活用すれば、それ以前よりもHTMLのコード量も減ったり、効率的にコードもかけます。装飾表現の多くもCSSで済みますから、わざわざPhotoshopなどを立ち上げる必要などもなく、ワークフロー全体でみても効率が上がるのではと思います。<br />
対応していないブラウザがあるから仕事でできない！という人は個人ブログなどででも、こうしたデザイントレンドや技術を取り入れていきましょう。</p>
<p>参照元記事：<br />
Design Trends (Predictions) in 2010<br />
<a href="http://www.webdesignerwall.com/trends/design-trends-predictions-in-2010/" target="_blank">http://www.webdesignerwall.com/trends/design-trends-predictions-in-2010/</a></p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/seminor/2009design_cssnite_vol43.html" title="2009年デザイントレンド総括！CSS Nite in Ginza, Vol.43に行ってきました (2010/1/25 月曜日)">2009年デザイントレンド総括！CSS Nite in Ginza, Vol.43に行ってきました</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/htmlcss/2010-webdesign-trend.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone向けサイト構築 基礎文法最速マスター</title>
		<link>http://designblog.ecstudio.jp/htmlcss/iphone-master.html</link>
		<comments>http://designblog.ecstudio.jp/htmlcss/iphone-master.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 00:30:32 +0000</pubDate>
		<dc:creator>谷 拓樹</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[チュートリアル]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[まとめ]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1273</guid>
		<description><![CDATA[弊社代表の著書、「iPhoneとツイッターで会社は儲かる」の出版記念と、巷で話題の「基礎文法最速マスター」ブームに便乗して、iPhone（iPod Touch）向けサイト構築における基礎とプラス応用のネタと、参考になるリンク集をまとめました。

 基礎編
対象ブラウザはMobileSafariです
レンダリングエンジンはSafariと同じwebkitですが、MobileSafariの方にはiPhone向けの一部独自拡張（CSS）があります。検証の際は、通常のSafariのウィンドウサイズを狭くして見るのも良いですし、できれば記事の最後で紹介するシミュレータを使うことをおすすめします。
話題のHTML5で書けます
宣言など簡素化できます
テキスト表示
HTML:




&#60;!doctype html&#62;


&#60;html&#62;


&#160; &#60;head&#62;


&#160; &#160; &#60;meta charset="UTF-8"&#62;


&#160; &#160; &#60;title&#62;タイトル&#60;/title&#62;


&#160; &#60;/meta&#62;&#60;/head&#62;


&#160; &#60;body&#62;&#60;/body&#62;


&#160;&#60;/html&#62; 






ただしHTML5のすべてが実装されているわけではないので、HTML5の新要素や機能を積極的に使うことはオススメできません。
HTML5"的"に書ける、という感覚で導入するといいでしょう。
CSS3の機能が結構使える
box-shadow,border-radiusや新しいセレクタやCSS gradientなどが使えます。
ただし新しいプロパティなどには「-webkit-」というプレフィックスは必要です。
ちょっとしたボタンならCSSだけでそれらしいものがデザインできます。
テキスト表示
CSS:




.button &#123;


-webkit-border-radius: 10px;


-webkit-box-shadow: rgba&#40;0,0,0,.1&#41; 1px 1px 3px; background: #02488D;


background-image: -webkit-gradient&#40;linear, 0% 0%, 0% 100%,


&#160;from&#40;rgba&#40;255, 255, 255, 0.4&#41;&#41;,


&#160;to&#40;rgba&#40;255, 255, 255, 0.1&#41;&#41;,


&#160;color-stop&#40;.5,rgba&#40;230, 230, 230, 0.3&#41;&#41;,


&#160;color-stop&#40;.5,rgba&#40;230, 230, 230, 0.2&#41;&#41;&#41;; 


&#125; 






CSSを読み込むときのmedia対応は「screen」で。
テキスト表示
HTML:




&#60;link media="screen" href="iphone.css" rel="stylesheet" type="text/css" /&#62; 






「viewport」の概念を押さえる
viewportは「表示領域」です。
縦のモードを「portlait」といい、幅は320pxに相当します。
横のモードは「landscape」といい、幅は480pxに相当します。

しかしMobileSafariはデフォルトで仮想で横幅980pxの解像度でシミュレーションしてサイトを表示します。
なので単純に縦で見た場合を想定して、横幅320pxのサイトをデザインしても思うように表示されません。

そのコントロールをするためにはviewportについてのmetaの記述が必要です。
下記はデフォルトの値を記述したものです。
テキスト表示
HTML:




&#60;meta name="viewport" content="width=980,initial-scale=1.0,user-scalable=yes,maximum-scale=3.0" /&#62; 






widthには表示領域を指定することができます。直接数字をいれるか、device-widthと指定できます。
device-widthにすれば前述の「portlait」の場合は横幅320px、「landscape」の場合は横幅480pxになります。

initial-scaleは初期表示の倍率です。例えばinitial-scale=2.0とした場合、widthが320pxであれば、2倍にズームされた状態になるので、画面には横幅160pxの内容が表示されることになります。

user-scalableはユーザーによる拡大・縮小の操作を強化するかどうかです。値はyesかnoかいずれかの指定になります。
maximum-scaleは拡大を許可した場合の最大倍率となります。
基本的にはデフォルトに近い値である方がユーザーには親切であると思いますので、iPhone向けにちょうどいいサイト幅で閲覧できるようwidth=device-widthのみ指定すると良いでしょう。
テキスト表示
HTML:




&#60;meta name="viewport" content="width=device-width" /&#62; 






サイトの幅はリキッドレイアウトを採用する
iPhoneは前述の通り、縦でも横でも閲覧ができ、それぞれのモードで解像度および表示領域が代わります。
そのためサイトの横幅はpx単位などで絶対指定するよりも、%単位など相対指定する方が可変になるので、どちらのモードでも対応出来ます。
クリックではなくタップを意識する
iPhoneではマウスカーソルおよびマウスオーバーなどの機能はありません。指による画面操作が必要となり、クリックも「タップ」という方法になります。
:hoverによるスタイルの調整もできないので、専用のプロパティを使いましょう。
テキスト表示
CSS:




a [...]]]></description>
			<content:encoded><![CDATA[<p>弊社代表の著書、<a href="http://www.ecstudio.jp/book/" target="_blank">「iPhoneとツイッターで会社は儲かる」</a>の出版記念と、巷で話題の「基礎文法最速マスター」ブームに便乗して、iPhone（iPod Touch）向けサイト構築における基礎とプラス応用のネタと、参考になるリンク集をまとめました。<br />
<span id="more-1273"></span></p>
<h4> 基礎編</h4>
<h5>対象ブラウザはMobileSafariです</h5>
<p>レンダリングエンジンはSafariと同じwebkitですが、MobileSafariの方にはiPhone向けの一部独自拡張（CSS）があります。検証の際は、通常のSafariのウィンドウサイズを狭くして見るのも良いですし、できれば記事の最後で紹介するシミュレータを使うことをおすすめします。</p>
<h5>話題のHTML5で書けます</h5>
<p>宣言など簡素化できます</p>
<div class="igBar"><span id="lhtml-66"><a href="#" onclick="javascript:showPlainTxt('html-66'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-66">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>!doctype html&gt;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">charset</span>=<span style="color: #ff0000;">"UTF-8"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>タイトル<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/meta&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ただしHTML5のすべてが実装されているわけではないので、HTML5の新要素や機能を積極的に使うことはオススメできません。<br />
HTML5"的"に書ける、という感覚で導入するといいでしょう。</p>
<h5>CSS3の機能が結構使える</h5>
<p><code>box-shadow</code>,<code>border-radius</code>や新しいセレクタやCSS gradientなどが使えます。<br />
ただし新しいプロパティなどには「-webkit-」というプレフィックスは必要です。<br />
ちょっとしたボタンならCSSだけでそれらしいものがデザインできます。</p>
<div class="igBar"><span id="lcss-67"><a href="#" onclick="javascript:showPlainTxt('css-67'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-67">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.button </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">-webkit-border-radius: 10px;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">-webkit-box-shadow: rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">0</span>,.<span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span> 1px 1px 3px; <span style="color: #000000; font-weight: bold;">background</span>: #02488D;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background-image</span>: -webkit-gradient<span style="color: #66cc66;">&#40;</span>linear, <span style="color: #cc66cc;color:#800000;">0</span>% <span style="color: #cc66cc;color:#800000;">0</span>%, <span style="color: #cc66cc;color:#800000;">0</span>% <span style="color: #cc66cc;color:#800000;">100</span>%,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;from<span style="color: #66cc66;">&#40;</span>rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">4</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;to<span style="color: #66cc66;">&#40;</span>rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;color-stop<span style="color: #66cc66;">&#40;</span>.<span style="color: #cc66cc;color:#800000;">5</span>,rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">230</span>, <span style="color: #cc66cc;color:#800000;">230</span>, <span style="color: #cc66cc;color:#800000;">230</span>, <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">3</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>,</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;color-stop<span style="color: #66cc66;">&#40;</span>.<span style="color: #cc66cc;color:#800000;">5</span>,rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">230</span>, <span style="color: #cc66cc;color:#800000;">230</span>, <span style="color: #cc66cc;color:#800000;">230</span>, <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
CSSを読み込むときのmedia対応は「screen」で。</p>
<div class="igBar"><span id="lhtml-68"><a href="#" onclick="javascript:showPlainTxt('html-68'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-68">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"screen"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"iphone.css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h5>「viewport」の概念を押さえる</h5>
<p>viewportは「<em>表示領域</em>」です。<br />
縦のモードを<em>「portlait」</em>といい、幅は320pxに相当します。<br />
横のモードは<em>「landscape」</em>といい、幅は480pxに相当します。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/viewport.png" alt="viewport" title="viewport" width="500" height="183" class="aligncenter size-full wp-image-1307" /></p>
<p>しかしMobileSafariはデフォルトで仮想で横幅980pxの解像度でシミュレーションしてサイトを表示します。<br />
なので単純に縦で見た場合を想定して、横幅320pxのサイトをデザインしても思うように表示されません。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/default.png" alt="default" title="default" width="500" height="210" class="aligncenter size-full wp-image-1304" /></p>
<p>そのコントロールをするためにはviewportについてのmetaの記述が必要です。<br />
下記はデフォルトの値を記述したものです。</p>
<div class="igBar"><span id="lhtml-69"><a href="#" onclick="javascript:showPlainTxt('html-69'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-69">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"viewport"</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">"width=980,initial-scale=1.0,user-scalable=yes,maximum-scale=3.0"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
<code>width</code>には表示領域を指定することができます。直接数字をいれるか、device-widthと指定できます。<br />
device-widthにすれば前述の「portlait」の場合は横幅320px、「landscape」の場合は横幅480pxになります。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/device-width.png" alt="device-width" title="device-width" width="500" height="210" class="aligncenter size-full wp-image-1305" /></p>
<p><code>initial-scale</code>は初期表示の倍率です。例えば<code>initial-scale=2.0</code>とした場合、<code>width</code>が320pxであれば、2倍にズームされた状態になるので、画面には横幅160pxの内容が表示されることになります。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/initial-scale.png" alt="initial-scale" title="initial-scale" width="500" height="210" class="aligncenter size-full wp-image-1306" /></p>
<p><code>user-scalable</code>はユーザーによる拡大・縮小の操作を強化するかどうかです。値はyesかnoかいずれかの指定になります。<br />
<code>maximum-scale</code>は拡大を許可した場合の最大倍率となります。</p>
<p>基本的にはデフォルトに近い値である方がユーザーには親切であると思いますので、iPhone向けにちょうどいいサイト幅で閲覧できるよう<code>width=device-width</code>のみ指定すると良いでしょう。</p>
<div class="igBar"><span id="lhtml-70"><a href="#" onclick="javascript:showPlainTxt('html-70'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-70">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"viewport"</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">"width=device-width"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h5>サイトの幅はリキッドレイアウトを採用する</h5>
<p>iPhoneは前述の通り、縦でも横でも閲覧ができ、それぞれのモードで解像度および表示領域が代わります。<br />
そのためサイトの横幅はpx単位などで絶対指定するよりも、%単位など相対指定する方が可変になるので、どちらのモードでも対応出来ます。</p>
<h5>クリックではなくタップを意識する</h5>
<p>iPhoneではマウスカーソルおよびマウスオーバーなどの機能はありません。指による画面操作が必要となり、クリックも「タップ」という方法になります。<br />
<code>:hover</code>によるスタイルの調整もできないので、専用のプロパティを使いましょう。</p>
<div class="igBar"><span id="lcss-71"><a href="#" onclick="javascript:showPlainTxt('css-71'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-71">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">a <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">-webkit-tap-highlight-<span style="color: #000000; font-weight: bold;">color</span>: rgba<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">255</span>,<span style="color: #cc66cc;color:#800000;">255</span>,<span style="color: #cc66cc;color:#800000;">555</span>,<span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">5</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">/*白背景・不透明度50％*/</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>またマウスカーソルのように繊細にリンク領域を指定することは難しいので、<code>margin</code>や<code>padding</code>、<code>line-height</code>を調整してリンク領域は大きめに取るようにしましょう。可読性も向上します。下記は<code>line-height</code>の例です。</p>
<div class="igBar"><span id="lcss-72"><a href="#" onclick="javascript:showPlainTxt('css-72'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-72">
<div class="css">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.paragraph </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;line-<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #cc66cc;color:#800000;">1</span>.<span style="color: #cc66cc;color:#800000;">8</span>;<span style="color: #808080; font-style: italic;">/* 1.6から1.8推奨 */</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h5>iPhone からのアクセスを判定してページを振り分ける</h5>
<p>PC用向けのページにアクセスされた場合に、iPhone（iPod Touch）向けのページへとリダイレクトさせたい場合には、サーバやプログラムでユーザーエージェントを判別して振り分ける方法があります。</p>
<p><strong>PHPでおこなう場合：</strong></p>
<div class="igBar"><span id="lphp-73"><a href="#" onclick="javascript:showPlainTxt('php-73'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-73">
<div class="php">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;">&lt;?</span> php</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color:#663333;">$ua</span> = <span style="color:#663333;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff00ff;">'HTTP_USER_AGENT'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color:#0000ff;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#40;</span><a target="_blank"&nbsp; href="http://www.php.net/strpos"><span style="color:#ff0000;">strpos</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#663333;">$ua</span>, “iPhone”<span style="color:#006600; font-weight:bold;">&#41;</span> !== <span style="color:#800000;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span> || <span style="color:#006600; font-weight:bold;">&#40;</span><a target="_blank"&nbsp; href="http://www.php.net/strpos"><span style="color:#ff0000;">strpos</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#663333;">$ua</span>, <span style="color:#ff00ff;">"iPod"</span><span style="color:#006600; font-weight:bold;">&#41;</span> !== <span style="color:#800000;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#008000;">//iPhone・iPod Touchの場合の処理</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#0000ff;">include</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff00ff;">'iphone.html'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#0000ff;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#008000;">//それ以外のブラウザの場合の処理</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#0000ff;">include</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff00ff;">'pc.html'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>.htaccessの場合：</strong></p>
<pre>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} iPod [OR]
RewriteCond %{HTTP_USER_AGENT} iPhone [OR]
RewriteCond %{HTTP_USER_AGENT} UP.Browser
RewriteRule ^$ /iphone.html [R]
</pre>
<p>これらの方法は強制的にiPhone向けのページへとリダイレクトする方法になるので、iPhoneでもPC向けのデザインでサイトをみたいユーザーを考慮したい場合は、別途PC向けのデザインで閲覧できるようにした方が良いでしょう。</p>
<h4>応用編</h4>
<h5>mailto:やtel:を問い合わせ手段に利用する</h5>
<p>PCサイトのコーディングで採用することは減ってきた<code>mailto:</code>のプロトコルをアンカーリンクに利用すると、iPhoneのメーラーが起動します。<br />
また<code>tel:</code>と電話番号を組み合わせると、サイトからiPhoneでのコールが可能になります。</p>
<div class="igBar"><span id="lhtml-74"><a href="#" onclick="javascript:showPlainTxt('html-74'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-74">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"tel:06-1234-5678"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>お問い合わせ電話番号<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
<code>tel:</code>の方はクリックをすると確認ダイアログが表示されるので、それほどユーザーに驚きは与えません。サイトに応じて問い合わせ手段として採用してはどうでしょうか。<br />
なお<code>mailto:</code>もPCサイトのときよりもメーラーの起動にはそれほどストレスを感じないと個人的には考えていますが、こちらは確認ダイアログが出ないのでJavascriptなどでそのような処理を加えると好ましいでしょう。</p>
<h5>表示領域を固定したい</h5>
<p>サイト幅をリキッドにして表示領域は柔軟にすることを推奨しましたが、都合上なるべく固定したいという場合には<em>Holygrail</em>と呼ばれるテクニックがあります。</p>
<div class="igBar"><span id="lhtml-75"><a href="#" onclick="javascript:showPlainTxt('html-75'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-75">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"viewport"</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">"width=480,user-scalable=no,maximum-scale=0.6667"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>裏技的な方法ですが、480×0.6667=320.016 という計算により、縦横どちらのモードでも表示領域上のサイト幅がそれぞれのモードにフィットした形で表示されます。<br />
なおかつユーザーによる拡大・縮小の操作を禁止することで、それが崩れることはなくなります。</p>
<h5>HTMLはPC用のまま、iPhoneには専用CSSを適用したい</h5>
<p>CSS3のメディアクエリを利用することで、iPhoneからのアクセスの場合にのみ専用のCSSを適用することができます。</p>
<div class="igBar"><span id="lhtml-76"><a href="#" onclick="javascript:showPlainTxt('html-76'); return false;">テキスト表示</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-76">
<div class="html">
<ol>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">/* iPhone, iPod Touch向け */</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"only screen and (max-device-width:480px)"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"iphone.css"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">/* PC向け */</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"only screen and (min-device-width:481px)"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"pc.css"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;">/* IE向け */</div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--[if IE]&gt;</span></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#F8F8F8;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a target="_blank"&nbsp; href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"pc.css"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: consolas,'Courier New', Courier, monospace;margin-left:25px;padding:1px 1px 1px 3px;background-color:#FFFFFF;">
<div style="font-family: consolas,'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>!<span style="color: #66cc66;">&#91;</span>endif<span style="color: #66cc66;">&#93;</span>--<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><code>media</code>にデバイスの解像度を指定することで、iPhoneにおける最大解像度の横幅である480pxよりも、大きいか小さいかの判定でCSSの読み込みを振り分けることができます。ただし、IEの場合はメディアクエリの認識ができないので、IE用にも追記をしています。<br />
なお同様の理由で古いブラウザの場合はIEと同等の判定をしてしまう場合があるので、この方法は万全とはいえませんが<br />
既存のサイトをiPhone向けに少しスタイルを調整したい場合などには採用する価値はあるかもしれません。</p>
<h5>高速化・軽量化をする</h5>
<p>PCのようにサイトを閲覧することができるiPhoneですが、3G回線やWifiでは重いページの表示がユーザーにストレスを与えます。<br />
下記の記事のテクニックなどを参考に、iPhone向けサイトも軽量化するようにしましょう。</p>
<p><a href="http://designblog.ecstudio.jp/tutorial/easy-speed-up.html">簡単作業でスピードアップ！パフォーマンスアップまとめ</a></p>
<p>なお上記記事にないテクニックとしては、<em>CSS3を活用してCSSとHTMLを簡素化する</em>ことと、<em>CSSやJSファイルの圧縮化</em>です。<br />
CSS3については記事の最後でまとめるリンク集などを参考にしてください。</p>
<p>ファイルの圧縮化とは、ソースコードのインデントやコメント、改行などを削除することでファイルサイズの軽減をすることです。<br />
開発環境では可読性を維持するために圧縮化は不要ですが、本番環境ではなるべく圧縮化する方が好ましいといえます。<br />
※ただし圧縮した結果、ソースコードに不具合が生じる可能性もあるので、テストは忘れないようにしましょう。</p>
<h4>まとめ</h4>
<p>iPhone向けにデザインを提供することには賛否ありますが、実際にiPhoneをお持ちの場合はPC版の対象サイトへとアクセスして必要かどうかを感じてください。<br />
少なくともFlashを大々的に利用しているようなサイトではiPhoneで見る価値が大きく損なわれるので、何かしたの代替コンテンツを提供する価値はあります。<br />
もちろん、アクセス解析などをみてそれらのユーザーが存在するかをチェックするのも重要です。<br />
iPhoneユーザーも着実に増えてきている現状ですので、一度iPhone向けサイトの構築を検討してみてはいかがでしょうか。<br />
開発者的には挑戦するだけで色々発見があって面白いですよ。</p>
<p>その他参考になりそうなリンクを下記にまとめてみたので、参考まで。</p>
<h5>iPhone関連総合</h5>
<p><a href="http://travel-lab.info/tech/pblog/article.php?id=131" target="_blank">Travellers Tales : iPhone 用 Web ページおよびアプリケーションの作り方</a><br />
<a href="http://sanride.com/blog/webdesign/iphonetips.php" target="_blank">iPhone制作TIPS情報の用意とまとめ - WEBデザイン＆コンサルティング</a><br />
<a href="http://allabout.co.jp/internet/javascript/closeup/CU20080715A/" target="_blank">iPhone 3G用のWebページを作る1 - ［JavaScript］All About</a></p>
<h5>CSS3関連</h5>
<p><a href="http://wiki.sohaya.com/index.php/Safari%E3%81%AECSS3%E6%8B%A1%E5%BC%B5#bbaa54dd" target="_blank">SafariのCSS3拡張 - iPhone 3G DevWiki</a><br />
<a href="http://westciv.com/iphonetests/" target="_blank">CSS 3 Properties and support in Browsers</a></p>
<h5>Viewport関連</h5>
<p><a href="http://design.kayac.com/topics/2009/11/iphone-tmpl.php" target="_blank">iPhone Webアプリテンプレート（CSS Nite Vol.40 reprise） | Topics | DB - KAYAC Designer's Blog （カヤック デザイナーブログ）</a><br />
<a href="http://www.projectdd.jp/2008/07/viewport_sample.html" target="_blank">viewportの表示を検証してみました - ProjectDD Blog</a></p>
<h5>UA関連</h5>
<p><a href="http://dekoboko.org/apple/iphone-ipod-touch-php.html" target="_blank">iPhone・iPod TouchをPHPで判定して分岐 | 凸凹</a><br />
<a href="http://kawa.at.webry.info/200912/article_4.html" target="_blank">MovableType (MT4)のブログをJS・CSSのみでiPhoneに対応させる Kawa.netブログ（川崎有亮）/ウェブリブログ</a></p>
<h5>圧縮化関連</h5>
<p><a href="http://www.alink.co.jp/tech/blog/2009/03/21/css%E3%81%AE%E5%9C%A7%E7%B8%AE%E3%81%A8css-compressor/" target="_blank">CSSの圧縮と"CSS Compressor" - ありんく tech-log</a></p>
<h5>その他</h5>
<p><strong>JSライブラリ</strong><br />
<a href="http://code.google.com/p/iui/" target="_blank">iui - Project Hosting on Google Code</a><br />
<a href="http://www.jqtouch.com/" target="_blank">jQTouch — jQuery plugin for mobile web development</a><br />
iPhoneならではのアニメーションなどが簡単につかえるライブラリです。<a href="http://www.ecstudio.jp/book/" target="_blank">「iPhoneとツイッターで会社は儲かる」</a>特設サイトのiPhone版サイトはjQtouchをベースにつくっています。</p>
<p><strong>wordpressプラグイン</strong><br />
<a href="http://iwphone.contentrobot.com/2007/07/04/iwphone-wordpress-plugin-and-theme/" target="_blank">iWPhone WordPress Plugin and Theme</a><br />
WordpressをiPhoneに最適化したテーマにしてくれます。当ブログでも採用。</p>
<p><strong>ショーケースサイト</strong><br />
<a href="http://cssiphone.com/" target="_blank">http://cssiphone.com/</a></p>
<p><strong>モックアップ作成キット</strong><br />
<a href="http://iphonemockup.lkmc.ch/" target="_blank">iPhone Mockup</a></p>
<p><strong>サービス</strong><br />
<a href="http://mobify.me/" target="_blank">MOBIFY - Make Your Website Mobile</a><br />
iPhone向けにPC向けサイトを変換してくれます。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/tutorial/easy-speed-up.html" title="簡単作業でスピードアップ！パフォーマンスアップまとめ (2010/1/28 木曜日)">簡単作業でスピードアップ！パフォーマンスアップまとめ</a> </li>
	<li><a href="http://designblog.ecstudio.jp/design-2/twitter_business_design.html" title="企業のTwitterページのデザインをまとめてみた (2009/9/8 火曜日)">企業のTwitterページのデザインをまとめてみた</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/web-directions-east-performanceup.html" title="Web Directions East 「パフォーマンスアップのウェブ技術 WDE-Express」 (2009/11/10 火曜日)">Web Directions East 「パフォーマンスアップのウェブ技術 WDE-Express」</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/twitter-web-people.html" title="Twitterフォローの第一歩！つぶやくweb業界の人々まとめ (2009/12/2 水曜日)">Twitterフォローの第一歩！つぶやくweb業界の人々まとめ</a> </li>
	<li><a href="http://designblog.ecstudio.jp/htmlcss/html5_iphone.html" title="HTML5だけでiPhoneアプリをつくる (2009/11/25 水曜日)">HTML5だけでiPhoneアプリをつくる</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/htmlcss/iphone-master.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ターゲットブラウザを選定して効率化！サイト制作時間短縮術</title>
		<link>http://designblog.ecstudio.jp/htmlcss/target-browser-cost-down.html</link>
		<comments>http://designblog.ecstudio.jp/htmlcss/target-browser-cost-down.html#comments</comments>
		<pubDate>Fri, 05 Feb 2010 06:15:40 +0000</pubDate>
		<dc:creator>赤堀　巴絵</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[コーディング]]></category>
		<category><![CDATA[ワークフロー]]></category>
		<category><![CDATA[効率化]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1245</guid>
		<description><![CDATA[ウェブサイトは各ブラウザごとに1pxでもずれないよう！
というコーディングをおこなっているところも多いと思いますが、
これって結構大変作業ですよね。
古いブラウザだけのためにCSSをごにょごにょしたり
スクリプトを使ったり、かなりコストがかかる作業も…。
全部のブラウザで同じ見え方にする作業はとても面倒ですよね。
これに工数をかけるならもっとデザインとか色々な部分に
時間がかけられるのに！ということも実際ありますよね。
そこで、ターゲットブラウザを選定してもっと楽にコーディング
できないかと最近は様々な効率化アップの取り組みを考えています。
今回は弊社でターゲットブラウザを選定して、
実際に効率化をおこなった実例のお話をしたいと思います。

実例サイト「TweetMail」
今回「TweetMail」でターゲットブラウザは、
メインのブラウザがFireFox、Google Chrome、
他にレイアウトが確認できるブラウザとしてInternetExplorer6,7,8、
Safari、Operaでチェックをおこないました。
TweetMailはTwetterを使いこなすWebリテラシーが高い人が使うであろう
という考えから、FireFox、Google Chromeをメインにしています。
また、弊社のアクセス解析データを確認したところ、
FireFoxユーザーが全体で最も多く、
InternetExplorerユーザーが全体の21.90%だったこともあります。
制作コストを削減した箇所
「TweetMail」のトップページの概要を説明している箇所ですが、
この箇所の角丸で制作コスト削減をおこなっています。

今まで対応していた方法なら角丸を作成するときに
jqueryを使ったり、画像を多用して&#60;div&#62;を増やして囲んだりと
角丸に対応するのに時間がかかっていました。
しかし、今回CSS3のborder-radiusで角丸を対応することにより
CSSで簡単に実装することができました。
InternetExplorerなどでは角丸を表現することはできませんが、
コンテンツの情報に違いはないので問題なく閲覧者に情報を伝えられます。
他にもCSS2.1の隣接兄弟セレクタなどもサイトに取り入れたりするようにしています。
InternetExplorer6などで表示されないですが、コンテンツの情報に影響はありません。
これからはCSS3など、まだすべてのブラウザに対応していないものでも、
ターゲットブラウザを選定して積極的に使っていき、
制作コストの削減をおこなって、効率化を目指してはいかがでしょうか。
デザインブログの「[CSS3小ネタ]CSS3でシマシマの表をつくる – :nth-child」
などもぜひ参照してください。

	関連した記事：
	
	誤字脱字を事前に減らして効率化！ 
	自動化のすすめ（Emeditorマクロで連番数字を挿入） 
	自動化のすすめ（Emeditorマクロで&#60;table&#62;テーブルタグ作成） 
	FireworksCS4が重い・固まる現象を改善する方法 
	Eclipseでスニペット！html・CSS共有大作戦で効率化アップ！ 


]]></description>
			<content:encoded><![CDATA[<p>ウェブサイトは各ブラウザごとに1pxでもずれないよう！<br />
というコーディングをおこなっているところも多いと思いますが、<br />
これって結構大変作業ですよね。</p>
<p>古いブラウザだけのためにCSSをごにょごにょしたり<br />
スクリプトを使ったり、かなりコストがかかる作業も…。<br />
全部のブラウザで同じ見え方にする作業はとても面倒ですよね。</p>
<p>これに工数をかけるならもっとデザインとか色々な部分に<br />
時間がかけられるのに！ということも実際ありますよね。</p>
<p>そこで、ターゲットブラウザを選定してもっと楽にコーディング<br />
できないかと最近は様々な効率化アップの取り組みを考えています。</p>
<p>今回は弊社でターゲットブラウザを選定して、<br />
実際に効率化をおこなった実例のお話をしたいと思います。</p>
<p><span id="more-1245"></span></p>
<h4>実例サイト「TweetMail」</h4>
<p>今回「<a href="http://www.tweet-mail.jp/" target="_blank">TweetMail</a>」でターゲットブラウザは、<br />
メインのブラウザがFireFox、Google Chrome、<br />
他にレイアウトが確認できるブラウザとしてInternetExplorer6,7,8、<br />
Safari、Operaでチェックをおこないました。</p>
<p>TweetMailはTwetterを使いこなすWebリテラシーが高い人が使うであろう<br />
という考えから、FireFox、Google Chromeをメインにしています。</p>
<p>また、弊社のアクセス解析データを確認したところ、<br />
FireFoxユーザーが全体で最も多く、<br />
InternetExplorerユーザーが全体の21.90%だったこともあります。</p>
<h4>制作コストを削減した箇所</h4>
<p><a href="http://www.tweet-mail.jp/" target="_blank">「TweetMail」のトップページ</a>の概要を説明している箇所ですが、<br />
この箇所の角丸で制作コスト削減をおこなっています。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/tweetmail-index.png" alt="tweetmail-index" title="tweetmail-index" width="400" height="187" class="alignnone size-full wp-image-1263" /></p>
<p>今まで対応していた方法なら角丸を作成するときに<br />
jqueryを使ったり、画像を多用して&lt;div&gt;を増やして囲んだりと<br />
角丸に対応するのに時間がかかっていました。</p>
<p>しかし、今回CSS3のborder-radiusで角丸を対応することにより<br />
CSSで簡単に実装することができました。</p>
<p>InternetExplorerなどでは角丸を表現することはできませんが、<br />
コンテンツの情報に違いはないので問題なく閲覧者に情報を伝えられます。</p>
<p>他にもCSS2.1の隣接兄弟セレクタなどもサイトに取り入れたりするようにしています。<br />
InternetExplorer6などで表示されないですが、コンテンツの情報に影響はありません。</p>
<p>これからはCSS3など、まだすべてのブラウザに対応していないものでも、<br />
ターゲットブラウザを選定して積極的に使っていき、<br />
制作コストの削減をおこなって、効率化を目指してはいかがでしょうか。</p>
<p>デザインブログの「<a href="http://designblog.ecstudio.jp/htmlcss/css3-nth-child.html" target="_blank">[CSS3小ネタ]CSS3でシマシマの表をつくる – :nth-child</a>」<br />
などもぜひ参照してください。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/design-2/correct-proofs.html" title="誤字脱字を事前に減らして効率化！ (2008/10/24 金曜日)">誤字脱字を事前に減らして効率化！</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/emeditor-macro-countnum-insert.html" title="自動化のすすめ（Emeditorマクロで連番数字を挿入） (2009/8/7 金曜日)">自動化のすすめ（Emeditorマクロで連番数字を挿入）</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/emeditor-macro-table.html" title="自動化のすすめ（Emeditorマクロで&lt;table&gt;テーブルタグ作成） (2009/4/9 木曜日)">自動化のすすめ（Emeditorマクロで&lt;table&gt;テーブルタグ作成）</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tutorial/busy_fireworks.html" title="FireworksCS4が重い・固まる現象を改善する方法 (2009/6/4 木曜日)">FireworksCS4が重い・固まる現象を改善する方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/eclipse-snippets.html" title="Eclipseでスニペット！<br />html・CSS共有大作戦で効率化アップ！ (2009/10/7 水曜日)">Eclipseでスニペット！<br />html・CSS共有大作戦で効率化アップ！</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/htmlcss/target-browser-cost-down.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>フォロワー同士で使うTwitterアイコン！無料配布</title>
		<link>http://designblog.ecstudio.jp/graphic_design/twitter_freeicon.html</link>
		<comments>http://designblog.ecstudio.jp/graphic_design/twitter_freeicon.html#comments</comments>
		<pubDate>Wed, 03 Feb 2010 13:00:40 +0000</pubDate>
		<dc:creator>端山 佳枝</dc:creator>
				<category><![CDATA[グラフィックデザイン]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[アイコン]]></category>
		<category><![CDATA[ダウンロード]]></category>
		<category><![CDATA[無料]]></category>
		<category><![CDATA[配布]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1207</guid>
		<description><![CDATA[全社導入しているTwitterで、なにか面白いことできないかなぁ
と考えたのが、こちらのTwitterアイコン。
　　　　
１つ１つをみると、普通の動物アイコン。
これをフォロワー同士でTwitterアイコンに設定し、
タイムラインがうまくつながると・・・

こんな風に絵がつながるという仕組み。

普通のアイコンにあきてしまった方や、
お友達同士の目印にいかがでしょう？
今回は、このオリジナルアイコンを無料配布いたします。
お気軽にお使いいただければ幸いです！
【5個セット：一括ダウンロード（約14 KB）】





フォロワーが多くて5つ揃えるのは難しい・・！
という方は2つでつながるこちらをどうぞ。
【2個セット：一括ダウンロード（約11 KB）】
　　
　　

	関連した記事：
	
	企業のTwitterページのデザインをまとめてみた 
	ブラウザ上でWebページをリアルタイム編集できる簡単な方法 
	Twitterフォローの第一歩！つぶやくweb業界の人々まとめ 


]]></description>
			<content:encoded><![CDATA[<p>全社導入しているTwitterで、なにか面白いことできないかなぁ<br />
と考えたのが、こちらのTwitterアイコン。</p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/crocodile.png" alt="crocodile" title="crocodile" width="48" height="48" class="alignleft size-full wp-image-1209" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/elephant.png" alt="elephant" title="elephant" width="48" height="48" class="alignleft size-full wp-image-1210" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/bird.png" alt="bird" title="bird" width="48" height="48" class="alignleft size-full wp-image-1211" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/koala.png" alt="koala" title="koala" width="48" height="48" class="alignleft size-full wp-image-1212" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/giraffe.png" alt="giraffe" title="giraffe" width="48" height="48" class="alignleft size-full wp-image-1213" /></p>
<p>１つ１つをみると、普通の動物アイコン。</p>
<p>これをフォロワー同士でTwitterアイコンに設定し、<br />
タイムラインがうまくつながると・・・<br />
<span id="more-1207"></span></p>
<p>こんな風に絵がつながるという仕組み。<br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/100203_screenshot.jpg" alt="タイムラインがつながった！" title="タイムラインがつながった！" width="312" height="351" class="alignnone size-full wp-image-1208" /></p>
<p>普通のアイコンにあきてしまった方や、<br />
お友達同士の目印にいかがでしょう？</p>
<p>今回は、このオリジナルアイコンを無料配布いたします。<br />
お気軽にお使いいただければ幸いです！</p>
<p><a href="http://bit.ly/icon1">【5個セット：一括ダウンロード（約14 KB）】</a></p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/giraffe.png" alt="giraffe" title="giraffe" width="48" height="48" class="alignleft size-full wp-image-1213" /><br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/koala.png" alt="koala" title="koala" width="48" height="48" class="alignleft size-full wp-image-1212" /><br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/bird.png" alt="bird" title="bird" width="48" height="48" class="alignleft size-full wp-image-1211" /><br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/elephant.png" alt="elephant" title="elephant" width="48" height="48" class="alignleft size-full wp-image-1210" /><br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/crocodile.png" alt="crocodile" title="crocodile" width="48" height="48" class="alignleft size-full wp-image-1209" /></p>
<p>フォロワーが多くて5つ揃えるのは難しい・・！<br />
という方は2つでつながるこちらをどうぞ。</p>
<p><a href="http://bit.ly/icon2">【2個セット：一括ダウンロード（約11 KB）】</a></p>
<p><img src="http://designblog.ecstudio.jp/wp-content/uploads/a_elephant.png" alt="a_elephant" title="a_elephant" width="48" height="48" class="alignleft size-full wp-image-1218" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/a_bird.png" alt="a_bird" title="a_bird" width="48" height="48" class="alignleft size-full wp-image-1219" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/a_giraffe.png" alt="a_giraffe" title="a_giraffe" width="48" height="48" class="alignleft size-full wp-image-1221" /><br />
<img src="http://designblog.ecstudio.jp/wp-content/uploads/a_crocodile.png" alt="a_crocodile" title="a_crocodile" width="48" height="48" class="alignleft size-full wp-image-1217" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/a_elephant.png" alt="a_elephant" title="a_elephant" width="48" height="48" class="alignleft size-full wp-image-1218" />　<img src="http://designblog.ecstudio.jp/wp-content/uploads/a_koala.png" alt="a_koala" title="a_koala" width="48" height="48" class="alignleft size-full wp-image-1220" /></p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/design-2/twitter_business_design.html" title="企業のTwitterページのデザインをまとめてみた (2009/9/8 火曜日)">企業のTwitterページのデザインをまとめてみた</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/page_editor.html" title="ブラウザ上でWebページをリアルタイム編集できる簡単な方法 (2010/3/4 木曜日)">ブラウザ上でWebページをリアルタイム編集できる簡単な方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/twitter-web-people.html" title="Twitterフォローの第一歩！つぶやくweb業界の人々まとめ (2009/12/2 水曜日)">Twitterフォローの第一歩！つぶやくweb業界の人々まとめ</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/graphic_design/twitter_freeicon.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>簡単作業でスピードアップ！パフォーマンスアップまとめ</title>
		<link>http://designblog.ecstudio.jp/tutorial/easy-speed-up.html</link>
		<comments>http://designblog.ecstudio.jp/tutorial/easy-speed-up.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 08:20:01 +0000</pubDate>
		<dc:creator>赤堀　巴絵</dc:creator>
				<category><![CDATA[チュートリアル]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[まとめ]]></category>
		<category><![CDATA[効率化]]></category>

		<guid isPermaLink="false">http://designblog.ecstudio.jp/?p=1165</guid>
		<description><![CDATA[以前にWeb Directions East 「パフォーマンスアップのウェブ技術 WDE-Express」で
パフォーマンスアップについて記事を書きました。
今回はその記事や色々参照した本・セミナーを元に実際に改善をおこなって、
どれだけ高速化したかデータ上で確認し、まとめてみました。
できるだけ手間をかけずに簡単にできる改善方法をおこなってみたので、
しばらくリニューアルの予定はないが、サイトの表示を早くさせたいという方は
ぜひ試してみてください。簡単作業でパフォーマンスアップできます。

CSSのコードを短縮して書こう
え？こんなこと？と思うかもしれないですが、
どんどんコードを書いていくうちに肥大していくものです。
もう一度見直してコードを軽くしていきましょう。
今回コードの見直しのために使用したサイトはclean CSSです。
clean CSSを参考にカラーコードの短縮、
不必要な記述の削除・省略などをおこないました。
ファイルサイズは11.9KBから10.5KBに、約11%削減することができました。
使われていない不要なコードを削除すると、もっと削減することができます。
CSS Redundancy Checker やCSS Usage を使うとさらに探しやすくなります。
全体のpng画像を最適化
punypngでサイト全体のpng画像を最適化しました。
png画像をアップロードするだけで簡単に軽量化できます。
あとはサーバー上書きするだけなので作業もすぐ終わります。
画像ファイル全体で約42%削減できました。
グローバルナビゲーションをスプライト化
CSSの記述が増えてCSSファイルは重くなりましたが、
画像のリクエストが大幅に軽減されたのでパフォーマンスはアップしました。
読み込むファイルサイズが462.7KBから338.7KBに改善、
そしてHTTP Requestも67から57に軽減しました。
CSSの@importを&#60;link&#62;タグに変更
現在@importを&#60;link&#62;タグの読み込みに変えるだけです。
これでさらにパフォーマンスがアップをおこなえました。
さらに、@importのみに使用していたファイルを削除をおこない、
HTTP Requestsが60から47に軽減されました。
全体のパフォーマンスの結果

実際「Googleウェブマスターツール」の「サイトのパフォーマンス」で確認した結果、
改善をおこなった後、急激に平均読み込み時間が短くなっています。
サイト内のページの平均読み込み時間を見ると4.1秒から2.0秒に改善されました。
数値で確認すると約2.0秒もサイトのパフォーマンスがアップしていました。
Googleはこれからサイトのパフォーマンスも考慮にいれて
検索結果を表示させていこうとする動きもあるので、
一度サイトのパフォーマンスを見直してみてはいかがでしょうか。

	関連した記事：
	
	Fireworksを使いこなそう！ワンクリックでパスをアウトライン化 
	FireworksCS4が重い・固まる現象を改善する方法 
	誤字脱字を事前に減らして効率化！ 
	自動化のすすめ（フォトショップのバッチ処理編） 
	自動化のすすめ（イラストレーター編） 


]]></description>
			<content:encoded><![CDATA[<p>以前にWeb Directions East 「<a href="http://designblog.ecstudio.jp/htmlcss/web-directions-east-performanceup.html" target="_blank">パフォーマンスアップのウェブ技術 WDE-Express</a>」で<br />
パフォーマンスアップについて記事を書きました。</p>
<p>今回はその記事や色々参照した本・セミナーを元に実際に改善をおこなって、<br />
どれだけ高速化したかデータ上で確認し、まとめてみました。</p>
<p>できるだけ手間をかけずに簡単にできる改善方法をおこなってみたので、<br />
しばらくリニューアルの予定はないが、サイトの表示を早くさせたいという方は<br />
ぜひ試してみてください。簡単作業でパフォーマンスアップできます。<br />
<span id="more-1165"></span></p>
<h4>CSSのコードを短縮して書こう</h4>
<p>え？こんなこと？と思うかもしれないですが、<br />
どんどんコードを書いていくうちに肥大していくものです。<br />
もう一度見直してコードを軽くしていきましょう。</p>
<p>今回コードの見直しのために使用したサイトは<a href="http://www.cleancss.com/" target="_blank">clean CSS</a>です。<br />
clean CSSを参考にカラーコードの短縮、<br />
不必要な記述の削除・省略などをおこないました。<br />
ファイルサイズは11.9KBから10.5KBに、約11%削減することができました。</p>
<p>使われていない不要なコードを削除すると、もっと削減することができます。<br />
<a href="http://services.immike.net/css-checker/" target="_blank">CSS Redundancy Checker</a> や<a href="https://addons.mozilla.org/ja/firefox/addon/10704" target="_blank">CSS Usage</a> を使うとさらに探しやすくなります。</p>
<h4>全体のpng画像を最適化</h4>
<p><a href="http://www.gracepointafterfive.com/punypng/" target="_blank">punypng</a>でサイト全体のpng画像を最適化しました。<br />
png画像をアップロードするだけで簡単に軽量化できます。</p>
<p>あとはサーバー上書きするだけなので作業もすぐ終わります。<br />
画像ファイル全体で約42%削減できました。</p>
<h4>グローバルナビゲーションをスプライト化</h4>
<p>CSSの記述が増えてCSSファイルは重くなりましたが、<br />
画像のリクエストが大幅に軽減されたのでパフォーマンスはアップしました。</p>
<p>読み込むファイルサイズが462.7KBから338.7KBに改善、<br />
そしてHTTP Requestも67から57に軽減しました。</p>
<h4>CSSの@importを&lt;link&gt;タグに変更</h4>
<p>現在@importを&lt;link&gt;タグの読み込みに変えるだけです。<br />
これでさらにパフォーマンスがアップをおこなえました。</p>
<p>さらに、@importのみに使用していたファイルを削除をおこない、<br />
HTTP Requestsが60から47に軽減されました。</p>
<h4>全体のパフォーマンスの結果</h4>
<p><img class="alignnone size-full wp-image-1186" title="peformance-graph" src="http://designblog.ecstudio.jp/wp-content/uploads/peformance-graph.png" alt="peformance-graph" width="525" height="139" /></p>
<p>実際「Googleウェブマスターツール」の「サイトのパフォーマンス」で確認した結果、<br />
改善をおこなった後、急激に平均読み込み時間が短くなっています。</p>
<p>サイト内のページの平均読み込み時間を見ると4.1秒から2.0秒に改善されました。<br />
数値で確認すると約2.0秒もサイトのパフォーマンスがアップしていました。</p>
<p>Googleはこれからサイトのパフォーマンスも考慮にいれて<br />
検索結果を表示させていこうとする動きもあるので、<br />
一度サイトのパフォーマンスを見直してみてはいかがでしょうか。</p>

	<br />関連した記事：
	<ul class="st-related-posts">
	<li><a href="http://designblog.ecstudio.jp/tutorial/fireworks-outline.html" title="Fireworksを使いこなそう！ワンクリックでパスをアウトライン化 (2010/2/26 金曜日)">Fireworksを使いこなそう！ワンクリックでパスをアウトライン化</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tutorial/busy_fireworks.html" title="FireworksCS4が重い・固まる現象を改善する方法 (2009/6/4 木曜日)">FireworksCS4が重い・固まる現象を改善する方法</a> </li>
	<li><a href="http://designblog.ecstudio.jp/design-2/correct-proofs.html" title="誤字脱字を事前に減らして効率化！ (2008/10/24 金曜日)">誤字脱字を事前に減らして効率化！</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/photoshop-batch.html" title="自動化のすすめ（フォトショップのバッチ処理編） (2008/7/25 金曜日)">自動化のすすめ（フォトショップのバッチ処理編）</a> </li>
	<li><a href="http://designblog.ecstudio.jp/tool/illustrator-script.html" title="自動化のすすめ（イラストレーター編） (2008/6/5 木曜日)">自動化のすすめ（イラストレーター編）</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://designblog.ecstudio.jp/tutorial/easy-speed-up.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
