css を使用した "text-indent" に問題があります。3 行以上の段落が必要で、最初の 2 行に "text-indent" スタイルを適用し、残りの行は次のようになります。通常のアライメント。CSSを使用してみましたが、期待した結果が得られなかったので、誰か助けてください。前もって感謝します。
4 に答える
1
float:left
これを実現するために疑似要素を使用できます
p:before
{
content: '';
display:inline-block;
width: 20px;
height: 30px; /* however much you need for 2 lines */
float:left;
}
于 2014-04-08T08:44:00.827 に答える
0
<p class="indent">This is the first line.</br>
This is the second Line
<p/>
<p>Those are other header or text or p or something else</p>
CSS
.indent {
text-indent:50px;
}
于 2014-04-08T08:45:53.987 に答える