Truncating long strings with CSS: feasible yet?
问题 Is there any good way of truncating text with plain HTML and CSS, so that dynamic content can fit in a fixed-width-and-height layout? I\'ve been truncating server-side by logical width (i.e. a blindly-guessed number of characters), but since a \'w\' is wider than an \'i\' this tends to be suboptimal, and also requires me to re-guess (and keep tweaking) the number of characters for every fixed width. Ideally the truncation would happen in the browser, which knows the physical width of the