linux 图形编程rect,rect_分类 | Elements_SVG_参考手册_非常教程

rect

是一个基本SVG创建的矩形,可以通过拐角的位置,它们的宽度和它们的高度限定。矩形可能会有角落圆角。

用法上下文

分类

基本形状元素,图形元素,形状元素

允许的内容

任意数量的以下元素,以任何顺序排列:动画元素描述性元素

属性

全局属性

Conditional processing attributes

Core attributes

Graphical event attributes

Presentation attributes

class

style

externalResourcesRequired

transform

具体属性

x确定矩形的x坐标。y确定矩形的y坐标。width确定矩形的宽度。height确定矩形的高度。rx确定矩形的水平圆角半径。ry确定矩形的垂直圆角半径。

DOM接口

例子

简单的rect用法

SVG

xmlns="http://www.w3.org/2000/svg">

结果

圆角矩形

SVG

xmlns="http://www.w3.org/2000/svg">

结果

产品规格

Specification

Status

Comment

Scalable Vector Graphics (SVG) 2The definition of '' in that specification.

Candidate Recommendation

Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '' in that specification.

Recommendation

Initial definition

浏览器兼容性

Feature

Chrome

Edge

Firefox (Gecko)

Internet Explorer

Opera

Safari

Basic support

1.0

(Yes)

1.5 (1.8)

9.0

8.0

3.0.4

Feature

Android

Edge

Firefox Mobile (Gecko)

IE Phone

Opera Mobile

Safari Mobile

Basic support

3.0

(Yes)

1.0 (1.8)

No support

(Yes)

3.0.4

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值