getElementById ("rect1").setAttribute("height", "100"); } </script> </body> </html>. 说明: 使用 document.getElementById() 函数,可以获得对SVG形状的引用。
確定! 回上一頁