好的...對拉斐爾來說非常新穎。在拉斐爾JS的紙上繪製邊框
無論如何,我如何繪製我的繪圖邊框,以便看到我的畫布大小?
<script type="text/javascript">
$(document).ready(function() {
var paper = Raphael('drawing', 100, 100);
var circle = paper.circle(50, 40, 30);
var rectangle = paper.rect(60, 60, 100, 20, 5);
var filler = { fill: 'red', cursor: 'pointer' };
circle.attr(filler);
circle.node.id = 'myCircle';
rectangle.attr(filler);
});
</script>
<div id="drawing" class="canvass">
</div>
所以你不能在紙上放一個邊框? – 2011-12-16 16:01:00