如何封装非矩形图像周围的文本?

问题描述:

是否可以在非矩形图像周围包装文本?

Is it possible to wrap text around a non rectangular image?

我想在不同国家的地图周围放置文字,以便围绕国家的形状,

I want text around maps of different countries to wrap around the country's shape in such a way that the text always keeps the same distance from the country's border even though the border itself isn't straight.

这是否可能?

有一些东西像 CSSTextWrapper ,它允许你通过拖动点来定义一个区域,

There are things like CSSTextWrapper, which lets you define an area by dragging points, then gives you the code to implement.

还有其他方法喜欢这个方法,其中你浮动div以阻止形状的区域。

Or there other ways like this method, where you float divs to block off the shape's area.

所以 - 答案是是的 - 。但是据我所知,没有简单的方式像一个CSS文本包装选项。

So - the answer is "Yes - it can be done". But as far as I know there's no "easy" way like a CSS "text-wrap" option.