Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用外部 CSS 文件来设置 VML 对象的填充或描边颜色等属性的样式?顺便说一句,我正在使用 Raphael 为 IE 创建我的 VML 形状。
谢谢
您可以使用 RaphaelJS 设置给定节点的id属性...
var c = paper.circle(10, 10, 10); c.node.id = 'azerty';
...并使用 CSS 设置样式:
#azerty {/* write your CSS formatting here */}
我认为你可以用class属性而不是id做同样的事情(待验证)。然后,您将使用.className JavaScript 属性。