<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Justify on php-tips.com</title>
    <link>https://php-tips.com/tags/justify/</link>
    <description>Recent content in Justify on php-tips.com</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Sat, 05 Dec 2009 13:09:06 +0900</lastBuildDate>
    <atom:link href="https://php-tips.com/tags/justify/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>文字の均等割り付けを行うjQueryプラグイン jQuery.justify.js</title>
      <link>https://php-tips.com/2009/12/05/%E6%96%87%E5%AD%97%E3%81%AE%E5%9D%87%E7%AD%89%E5%89%B2%E3%82%8A%E4%BB%98%E3%81%91%E3%82%92%E8%A1%8C%E3%81%86jquery%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3-jquery-justify-js/</link>
      <pubDate>Sat, 05 Dec 2009 13:09:06 +0900</pubDate>
      <guid>https://php-tips.com/2009/12/05/%E6%96%87%E5%AD%97%E3%81%AE%E5%9D%87%E7%AD%89%E5%89%B2%E3%82%8A%E4%BB%98%E3%81%91%E3%82%92%E8%A1%8C%E3%81%86jquery%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3-jquery-justify-js/</guid>
      <description>&lt;p&gt;日本人は表組が大好きです。
クリスマスのチキンより表組みが好きなんです。（嘘&lt;/p&gt;
&lt;p&gt;そんな表組の中で時折見かけるのが下表のようなデザイン。&lt;/p&gt;
&lt;p&gt;[caption id=&amp;ldquo;attachment_285&amp;rdquo; align=&amp;ldquo;alignnone&amp;rdquo; width=&amp;ldquo;303&amp;rdquo; caption=&amp;ldquo;表1&amp;rdquo;]&lt;img src=&#34;http://php-tips.com/wp-content/uploads/2009/12/427feeba2c3a5b495c286f27ae1fdcc3.png&#34; alt=&#34;表1&#34; title=&#34;justify-sample&#34; width=&#34;303&#34; height=&#34;168&#34; class=&#34;size-full wp-image-285&#34; /&gt;[/caption]&lt;/p&gt;
&lt;p&gt;見出し部分を均等割り付けです。
均等割り付けなんかイヤだ！といってもやらなきゃいけないときもあるわけで。&lt;/p&gt;
&lt;p&gt;普通、こういう表現をする場合スペースなんかで間隔を揃えてしまいがちですが、アクセシビリティを考えるとあんまりよろしくありません。&lt;/p&gt;
&lt;p&gt;そんなとき、CSSプロパティのletter-spacingを利用して文字間隔を揃えます。
しかし、手動でやるのは文字数やフォントサイズが変わるたびに値を調整しないといけないため、あまり効率的ではありません。&lt;/p&gt;
&lt;p&gt;そんなときに使えるのが本jQueryプラグインになります。&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://bit.ly/4CU0Fs&#34; title=&#34;http://gist.github.com/249164&#34;&gt;jQuery.justify.js  [ダウンロード]&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;※IE6, 7, 8, firefox 3.5, Safari 4, Google Chorme 4での動作を確認しています。&lt;/p&gt;
&lt;p&gt;[ad]&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
