简体   繁体   中英

Threading text like in Indesign with HTML/JS

How to program threading text like in frames in Indesign. Link: http://helpx.adobe.com/indesign/using/threading-text.html

I want to use three columns in HTML. In these columns I will add one text. Whenever the content of the text exceed the column height, the text should pass over to the next column. The last column don't pass the text content.

You can use column-count css property, with browser specific prefixes for Firefox and Chrome.

Beware, it doesn't work in IE <10

-moz-column-count:3;
-webkit-column-count:3;
column-count:3;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM