1

残念ながら、私は古いプログラムを使用してフォームを生成することに行き詰まっていますが、CSS をいじることはできます。プログラムは次の html を生成します。

<input type="checkbox" name="_QStrategy_QV03_CV02" id="_Q2_C1" class="mrMultiple" style="" value="V02">
<label for="_Q2_C1">
<span class="mrMultipleText" style="">Defining the finance operating model to align with and support the execution of the organisation’s broader strategy. A finance operating model is a description of how an the finance function’s people, process and technology interacts internally and externally to deliver products and services.</span>
</label>

ラベルは長く、次の行に折り返され、次の行のテキストはチェックボックスのすぐ下にあります。ラップされたテキストがインデントされるようにするにはどうすればよいですか?

4

2 に答える 2

4

幅が指定されたフロート要素

label{float:left;width: 75%;}
input[type="checkbox"]{float:left;width:20px}

フィドルを見る

于 2013-04-18T11:04:10.707 に答える
1

このcssを試してください

.mrMultipleText
{
    width:75%;
    float:left;
}
.mrMultiple
{
    float:left;
}

このフィドルを参照してください

于 2013-04-18T11:04:51.430 に答える