Svg-rect
提供:Dev Guides
SVG-四角形
<rect>要素は、現在のユーザー座標系と軸が揃った長方形を描くために使用されます。
宣言
以下は、 <rect> 要素の構文宣言です。 主な属性のみを示しました。
属性
Sr.No. | Name&Description |
---|---|
1 | x − x-axis co-ordinate of top left of the rectangle. Default is 0. |
2 | y − y-axis co-ordinate of top left of the rectangle. Default is 0. |
3 | width − width of the rectangle. |
4 | height − height of the rectangle. |
5 | rx − used to round the corner of the rounded rectangle. |
6 | ry − used to round the corner of the rounded rectangle. |
7 | style − used to specify inline styles. |
8 | class − used to specify external style name to the element. |
例
テストVG
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。
不透明度のある長方形
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。
長方形#3:角が丸い
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。
link:/cgi-bin/printpage.cgi [__印刷]