DIV の高さを指定してtext-overflow: ellipsis
から、ラインラップ CSS アプローチを使用して防止します。
簡単な例を次に示します。
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
}
もちろん、問題を起こしている人は常にいますが、今回は Firefox です。ファイルを CSS にバインドする必要があります。
思ったより簡単です。新しいテキスト ファイルを作成して、ellipsis.xml という名前を付けます。次に、参照できる Web サーバー上の任意の場所に貼り付けます。
<?xml version="1.0"?>
<bindings
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="ellipsis">
<content>
<xul:window>
<xul:description crop="end" xbl:inherits="value=xbl:text"><children/>
</xul:description>
</xul:window>
</content>
</binding>
</bindings>
次に、CSS で次のようにします。
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
-moz-binding: url('assets/xml/ellipsis.xml#ellipsis');
}
それは簡単な概要です。詳細については、この男をチェックしてください。
http://mattsnider.com/css/css-string-truncation-with-ellipsis/
ところで: threedots プラグインがより簡単な選択であると思われる場合は、それを選択してください。