0

How to fix the height of the vertical text? It is not working properly with line-height or height property

Here is my demo http://jsfiddle.net/BsZ8f/1/

4

1 回答 1

0

我尝试了代码,但无法弄清楚。我的解决方案是只使用 css2 来创建垂直文本,为此你只需要给 .title 一个固定的宽度,比如 10px 就足以容纳一个字符,这样文本将自动垂直对齐并给出 height: auto; 溢出:自动;以确保高度调整。

于 2012-08-03T13:01:24.607 回答