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(); });
A easy way to create CSS rules without using .css or tag Simple use, a better interpreter has been created. Would you like to manipulate CSS like this? $.cssRule({ "body": [ ["background-color", "#fff"], "font-family:verdana", "font-size:10px", "padding, margin: 0px" ], "h1": [ "font-size:17px;color:#009", { "a": "color:#ff0" } ], "a, a:visited": [
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く