<img/>属性width =“ - 3364.67”的负值无效

时间:2014-01-06 07:57:42

标签: javascript svg raphael bootstrap-modal

我使用Raphael JS library,我在Chrome和Safari中有一些错误

元素属性-value的无效值

Error: Invalid negative value for <image> attribute width="-3364.67" (index):1
Error: Invalid negative value for <image> attribute height="-3364.67" (index):1
Error: Invalid negative value for <image> attribute width="-3364.6662980435035" (index):1
Error: Invalid negative value for <image> attribute height="-3364.6662980435035" (index):1
Error: Invalid negative value for <image> attribute width="-3364.6662980435035" raphael.js:6153
Error: Invalid negative value for <image> attribute height="-3364.6662980435035" raphael.js:6175
Error: Invalid negative value for <image> attribute width="-3364.6662980435035" raphael.js:6153
Error: Invalid negative value for <image> attribute height="-3364.6662980435035" raphael.js:6175

也许某人有这样的情况并且可以向我推荐一些东西。

提前THX

prombelem在Raphael.js上线~6153和6175

               case "width":
                    node.setAttribute(att, value);
                    o._.dirty = 1;
                    if (attrs.fx) {
                        att = "x";
                        value = attrs.x;
                    } else {
                        break;
                    }

               case "height":
                    node.setAttribute(att, value);
                    o._.dirty = 1;
                    if (attrs.fy) {
                        att = "y";
                        value = attrs.y;
                    } else {
                        break;
                    }

0 个答案:

没有答案