SVG 是使用 XML 來描述二維圖形和繪圖程式的語言。
SVG <rect> 語法
SVG有一些預(yù)先定義的形狀元素,可被開發(fā)者使用和操作:
矩形<rect>,圓形<circle>,橢圓<ellipse>,線<line> ;,折線<polyline>,多邊形<polygon>,路徑<path>
SVG <rect> 範(fàn)例
<!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>
運(yùn)行實(shí)例?
點(diǎn)擊"運(yùn)行實(shí)例" 按鈕查看線上實(shí)例