Home  >  Article  >  Web Front-end  >  如何使用 CSS3 实现 TeX 一般强大的行内元素排版?

如何使用 CSS3 实现 TeX 一般强大的行内元素排版?

WBOY
WBOYOriginal
2016-06-07 08:45:081524browse

包括但不限于:

  1. 精确指定某个 inline-block 的高度(Height,TeX 术语)和深度(Depth),并使当前行行高与之相协调
  2. 精确地将某个 inline-block 离上边缘特定距离(以 em/rem 作单位)的位置和其外部所在行的基线对齐

回复内容:

完整呈現還要花些時間,例如Hachette Livre的專家Dave Cramer在完成(?)拉丁排版與分頁需求後,寫了 CSS inline layout這份文件。就在處理你所提到的部分問題。
http://dev.w3.org/csswg/css-inline/

TeX的確很強,HTML與CSS在他面前宛如赤子。但現在W3C的目的就是希望Web技術可以達到TeX的等級,而到那一步時,就會取代TeX。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn