0

Is there any library or easy solution to render SVGs using CSS (CSS3?)

With CSS you can draw things, but it's easier to do that using easy tools like Inkscape to create the svg, then convert it to CSS. Here is an exemple of CSS logo : Check this link

The first use of this is rendering high quality graphics even in old browsers which supports CSS but not SVG (Android 2.2, 2.3, ..., iPhone browser, ..) CSS graphics also have accelerated rendering more than SVG.

4

2 回答 2

2

没有库可以自动从 SVG 转换为 CSS。

然而,有几个基于 CSS + HTML 的绘图库。他们应该使将徽标转换为 CSS 的任务更容易。此类库的示例有:

于 2012-12-19T15:57:38.247 回答
1

我试过的一个好方法是http://raphaeljs.com/

唯一不好的是文档有点乱 - 但图书馆工作。

于 2012-12-19T12:03:30.703 回答