VML破坏了浏览器兼容性解决方案 [英] VML crose browser compatability solution

查看:126
本文介绍了VML破坏了浏览器兼容性解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以交叉浏览器兼容性方式转换v:line,v:path,v:textpath VML语言。 v:行代码示例:

< v:line

来自 = 150,100

to = 300,225

< span class =code-attribute> strokeweight = 8px

strokecolor = red

style = position: 绝对;

< / v:line >

该方法应该是什么?

解决方案

请参阅我最近的回答:我如何学习所有跨浏览器技术? [ ^ ]。



-SA


说实话:你不能。

更准确地说,没有适用于所有平台和所有浏览版本的解决方案开箱即用。因此,您应该为此跨浏览器要求添加一些约束。 VRML从未成为广泛支持的解决方案。

如果你发布了一个子集就足够了一些方法:

SVG:见支持表: http://caniuse.com/svg [ ^ ]

HTML5画布:请参阅支持表: http://caniuse.com/canvas [ ^ ]

(插件和解决方法也可用于旧浏览器版本)

其他一些方法:

http://www.jsgl.org/doku.php [ ^ ]

http://raphaeljs.com/ [ ^ ]

I need to convert v:line, v:path, v:textpath VML language in a crossbrowser compatability manner. v:line code sample:

<v:line

from="150,100"

to="300,225"

strokeweight="8px"

strokecolor="red"

style=position: absolute;

</v:line>

What should be the approach?

解决方案

Please see my recent answer: how can i learn all the cross browser techniques?[^].

—SA


To be honest: you can not.
More precisely there is no solution that will work for on all platforms and all versions of all browsers out of the box. So you should add some constraints to this cross-browser requirement. VRML was never a widely supported solutions.
Some approaches if a subset is enough, as you posted:
SVG: see support table: http://caniuse.com/svg[^]
HTML5 canvas: see support table: http://caniuse.com/canvas[^]
(plugins and workarounds are available for older browser versions too)
Some other approaches:
http://www.jsgl.org/doku.php[^]
http://raphaeljs.com/[^]


这篇关于VML破坏了浏览器兼容性解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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