1

Nested ( http://suprb.com/apps/nested/ ) と呼ばれるかなり新しい複数列グリッド jQuery プラグインを試していますが、サイズ パラメーターをパーセンテージで設定することに慣れていません。

HTMLは次のとおりです。

            <div id="container">
            <div class="box">1</div> x5
            </div>

次に、nested.js ファイルで、

    $.Nested.settings = {
    selector: '.box',
    minWidth: 200,
    minColumns: 1,
    gutter: 1,
    resizeToFit: true, // will resize block bigger than the gap
    resizeToFitOptions: {
        resizeAny: true // will resize any block to fit the gap         
    },

「minWidth」をパーセンテージに変更したい。この場合、含まれるコンテナー.boxは 100% であり、100% に収まるように、それぞれの幅が少なくとも 20% に等しい 5 つの列が常に必要です。

どうすればこれを達成できますか?

4

1 に答える 1

0

なぜcssを使わないのですか?

<style>
 .box{
 width:20% !important;
 }
 </style>
于 2013-02-28T14:23:12.753 に答える