开发者

Options for list within a fixed width, HTML PHP

Do you know of a good solution for dealing with text entries of variable lengths lists with a fixed width?

I have an unordered list with a set number of items. Each item contains a title. The title can be variable length, not only in number of characters, but also number of characterset (korean, japanese, roman, etc.).

One option seems to be cutting the text length down with PHP and adding "..." at the end, but since character widths can be variable, the exact cutoff can also be variable. Another would be to make items fixed with and hide overflow, 开发者_运维知识库but this seems inelegant (because characters might get cutoff right in their centers...).

Do you know of a good tutorial or solution for something like this?


Using CSS: text-overflow: ellipsis. Doesn't work in all browsers though. More information: http://www.quirksmode.org/css/textoverflow.html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜