0

タグdivの代わりに CSS を使用して段落間隔を調整できるように、Quill エディターでクラスを挿入する方法はありますか?br

brこれらの sを使用する例の 1 つを次に示します。

<div class="ql-editor" id="ql-editor-1" contenteditable="true">
  <div>
      <span style="font-size: 18px;">One Ring to Rule Them All</span>    
  </div>
  <div>
    <a href="http://en.wikipedia.org/wiki/One_Ring">http://en.wikipedia.org/wiki/One_Ring</a>
  </div>

  <div><br></div>

  <div>Three Rings for the <u>Elven-kings</u> under the sky,</div>
  <div>Seven for the <u>Dwarf-lords</u> in halls of stone,</div>
  <div>Nine for <u>Mortal Men</u>, doomed to die,</div>
  <div>One for the <u>Dark Lord</u> on his dark throne.</div>

  <div><br></div>

  <div>In the Land of Mordor where the Shadows lie.</div>
  <div>One Ring to <b>rule</b> them all, One Ring to <b>find</b> them,</div>

  <div>One Ring to <b>bring</b> them all and in the darkness <b>bind</b> them.</div>
  <div>In the Land of Mordor where the Shadows lie.</div>
</div>
4

1 に答える 1

1

<br>タグは空の行でのみ使用され、オプションではありません。Quill の行の CSS に影響を与える最良の方法は、子孫セレクターを使用することです。

于 2015-11-23T12:32:20.510 に答える