구문 오류가 있다고 생각하지만 모든 것을 시도했지만이를 이해할 수 없습니다. Raphael Javascript 벡터 그래픽 라이브러리를 사용하고 있으며 170, 170, 150, 150의 검정색 선을 그리려고하지만 아무것도 표시되지 않습니다. 왜 그 이유를 알 수 있습니까?Raphael 경로가 표시되지 않습니다.
<html>
<head>
<script src="raphael.js"></script>
<script src="jquery-1.7.2.js"></script>
</head>
<body>
<div id="sample-2" style=" background-color:blue; width:500px;"></div>
<script type="text/javascript">
var paper = Raphael("sample-2", 900, 500);
//var curvePath = paper.path("M100,100 L400,400 C500,400 500,100 400,100");
//curvePath.attr({fill:"blue", stroke:"black"});
//var circle = paper.circle(175, 175, 50);
var newpath = paper.path({type:"path", path:"M170, 170 L150, 150", stroke:"black"});
//circle.attr({"fill": "orange"});
//circle.attr({"stroke": "black"});
</script>
</body>
</html>
이 나는 검은 색 선이 표시되지 않는 스트로크 색상, 글꼴 그렇게처럼
attr()
방법을 사용 채우기 ... –내가 보는 모든 것은 파란색 배경입니다. –
"working"링크. 나는 내가 보았을 때 모두 파란색 배경이었다. 검은 색 선이 보입니까? –