Plugin jQuery: BalanceText : jQuery plugin for implementing balancing of Wrapping Text

BalanceText : jQuery plugin for implementing balancing of Wrapping Text
http://www.jqueryrain.com/?http://adobe-webplatform.github.io/balance-text/demo/index.html
https://github.com/adobe-webplatform/balance-text/archive/master.zip
https://github.com/adobe-webplatform/balance-text
15/01/2014

Nội dung

BalanceText : jQuery plugin for implementing balancing of Wrapping Text

A jQuery plugin to provide an alternate text wrapping algorithm. I hope to get this into the CSS spec, so it’s implemented as a polyfill.

The default text rendering algorithm is:

  1. Add 1 word at a time to the current line until the next word won’t fit.
  2. Break text so that the next word starts on a new line.
  3. Repeat until all text has been rendered.

Nguồn: www.jqueryrain.com/2014/01/balancetext-jquery-plugin-implementing-balancing-wrapping-text/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận