所以我有这个脚本
var wide = window.innerWidth;
var high = window.innerHeight;
var paper = Raphael(0, 0, wide, high);
for (var j = 0; j < (wide / 10); j += 1) {
var multi = j * 10;
paper.path(["M", multi + 0.5, 0, "v", high]);
};
for (var j = 0; j < (high / 10); j += 1) {
var multi = j * 10;
paper.path(["M", 0,multi + 0.5, "h", wide]);
};
我希望网格在调整大小时绘制到窗口的大小,如果可能的话,再加上如何更改线条的颜色?
这是一个小提琴
http://jsfiddle.net/zhirkovski/7DXJ4/2/
谢谢