// ********* 均等割り付けスクリプト *********** // 改造などはご自由に行って結構ですが、このスクリプトそのものを販売することを禁じます。 // web屋 内藤 http://www.web-naito.net/ // ***************** 2013.9.8 ***************** (function( $ ){ $.fn.justify = function(options) { return this.each(function(){ var words = $(this).text(), origFontSize = $(this).css("font-size").replace("px", ""), wordsLength = $(this).text().length, lineText = "", fontRatio = 0; if(wordsLength == 1) { $(this).css("text-align", "center"); return; } // 現在の文章の幅を測る function grabPixelLineSize(text) { var dummy = '