SVG 是使用 XML 來描述二維圖形和繪圖程式的語言。
SVG <rect> 語法
SVG有一些預先定義的形狀元素,可被開發(fā)者使用和操作:
矩形<rect>,圓形<circle>,橢圓<ellipse>,線<line> ;,折線<polyline>,多邊形<polygon>,路徑<path>
SVG <rect> 範例
<!DOCTYPE?html> <html> <body> <svg?xmlns="http://www.w3.org/2000/svg"?version="1.1"> ??<rect?width="300"?height="100"?style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)"?/> </svg> ? </body> </html>
運行實例?
點擊"運行實例" 按鈕查看線上實例