关于如何解决VML在IE8下不能使用setAttribute设置vml dom的属性
当我们使用js去创建vml dom节点时,发现在IE8下使用setAttribute设置属性不能生效,很是郁闷。
有人说提供了解决方式如下:
在IE6,7下可以使用setAttribute,例如dom.setAttribute("stroke")
IE8下使用点运算符可以做到,例如 dom.stroked="f"
dom.stroked="f"这种方式有个缺陷,就是你要事先知道...
2011-11-03 20:30:38 ·
270 阅读 ·
0 评论