如何封装非矩形图像周围的文本? [英] How can I wrap text around a non rectangular image?

查看:82
本文介绍了如何封装非矩形图像周围的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于如何封装非矩形图像周围的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆