Justify elements using jQuery and CSS jQueryã¨CSSã使ã£ã¦ãã©ã¼ã ã®inputè¦ç´ ã楽ã«æ´åãããæ¹æ³ãç´¹ä»ããã¦ããã¾ãã ä½ãã§ãããï¼ã¨ããã®ã¯æ¬¡ã®å³ãè¦ã¦é ãã®ãã¯ããã§ãããã ããã©ã¢ ââââ ã¢ãã¿ã¼ ãããå®ç¾ããããã«ãCSSã¨ãã¼ã¯ã¢ããã«ãã£ã¦å®ç¾ããã®ãæ®éã§ãããjQueryã«ãã£ã¦ãã£ã¨ã¹ãã¼ãã«åºæ¥ãããã§ããã å ·ä½çã«ã¯ã次ã®ããã«ãlabel ã®ä¸ã§ width ããã£ã¨ã大ãããã®ã®ãµã¤ãºãå¾ã¦ããã®ãµã¤ãºã«JavaScriptã§èª¿æ´ãã¡ããã¨ãããã®ã§ãã $(document).ready(function() { var max = 0; $("label").each(function(){ if ($(this).width() > max) max = $(this).width(); });
{{#tags}}- {{label}}
{{/tags}}