0

次のコードは、この特定の方法で設定され、長方形の幅の属性を設定するとポリラインと同じであるか、それを変更する必要があるかを知っていますか?

function newer() {
        document.getElementById("rectangle").setAttribute('width',"70");
}

ポリラインの次のコードのようになりますか、それとも他の方法ですか?

  function new() {
        document.getElementById("polyline1").setAttribute('points', "0,0 200,0 200,200 100,200 100,100 0,100 0,0" );

    }
4

1 に答える 1

1

SVG ポリライン (http://www.w3schools.com/svg/svg_polyline.asp) について話していると仮定すると、points が属性であり、「0,0 200,0 200,200 100,200 100,100 0,100 0,0」が属性値です。 .

あ、はい。

于 2012-04-18T09:19:53.067 に答える