@page.bleed

@page.bleed

这是一种实验技术

由于该技术的规格不稳定,请查看各种浏览器的兼容性表格以供使用。另外请注意,随着规范的变化,实验技术的语法和行为在未来版本的浏览器中可能会发生变化。

与规则一起使用的bleed CSS规则描述符@page指定页面框外的页面出血区域的范围。如果使用marks属性启用裁剪标记,则此属性只有效果。

Related at-rule@page
初始值auto
媒体visual, paged
计算值as specified
规范顺序the unique non-ambiguous order defined by the formal grammar

语法

/* Keyword values */ bleed: auto; /* <length> values */ bleed: 8pt; bleed: 1cm;

auto计算到6pt如果值marks是crop。否则计算为零。<length>指定在每个方向上向外多远, bleed 区域延伸通过页面框。价值观可能是负面的,但是可能存在实施特定的限制。

形式语法

auto | <length>

@page {   bleed: 1cm; }

规范

SpecificationStatusComment
CSS Paged Media Module Level 3The definition of 'bleed' in that specification.Working DraftInitial definition

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support?????

FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support?????