首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

形状余量 | shape-margin

shape-margin CSS属性为shape-outside添加外边距。

代码语言:javascript
复制
/* <length> values */
shape-margin: 10px;
shape-margin: 20mm;

/* <percentage> values */
shape-margin: 60%;

/* Global values */
shape-margin: inherit;
shape-margin: initial;
shape-margin: unset;

Initial value

0

Applies to

floats

Inherited

no

Percentages

refer to the width of the containing block

Media

visual

Computed value

as specified, but with relative lengths converted into absolute lengths

Animation type

a length, percentage or calc();

Canonical order

the unique non-ambiguous order defined by the formal grammar

语法

可用值

<length-percentage>将形状的边距设置为一个<length>值,或者设置为元素包含块的宽度的一个<percentage>值。

形式语法

代码语言:javascript
复制
<length-percentage>where 
<length-percentage> = <length> | <percentage>

规范

Specification

Status

Comment

CSS Shapes Module Level 1The definition of 'shape-margin' in that specification.

Candidate Recommendation

Initial definition

浏览器兼容性

Feature

Chrome

Firefox (Gecko)

Internet Explorer

Opera

Safari (WebKit)

Basic support

(Yes)

No support

No support

No support

7.0 -webkit

Feature

Android

Firefox Mobile (Gecko)

IE Phone

Opera Mobile

Safari Mobile

Basic support

(Yes)

No support

No support

No support

?

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com