[在线等]jq获取VML的oval属性报错
function vmlobj(x, y, r) {
this.el = $("<v:oval></v:oval>");
this.el.css("position", "absolute");
this.el.css("left", x);
this.el.css("top", y);
this.el.css("width", r);
this.el.css("height", r);
this.el.attr("fillcolor","white");
this.getEl = function () {
return this.el;
}
this.el.click(function () {
//绘制表格
$("#distable").css("display", "");
//设置div的位置,也用来计算表格的位置
$("#distable").css("left", x + 1.5 * r);
$("#distable").css("top", y);
$("#distable").css("position", "absolute");
})
this.el.mousemove(function () {
var temp = r / 2;
$("#d1").animate({ width: "810" }, 1000)
$(this).attr("fillcolor", "red");
.animate({ width: temp + "px", height: temp + "px" }, 1000)
.animate({ width: r + "px", height: r + "px" }, 1000);
})
}
红色部分一直说不支持这个属性 其实是支持的