这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks 特性。

句法

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

auto
Computes to 6pt if the value of marks is crop . Otherwise it computes to zero.
<length>

Specifies by how far outward, in each direction, the bleed area extends past the page box. Values may be negative, but there may be implementation-specific limits.

形式定义

相关 at-rule @page
初始值 auto
计算值 如指定

形式句法

auto | <length>
					

范例

Setting a page bleed of 1cm

@page {
  bleed: 1cm;
}
					

规范

规范 状态 注释
CSS Paged Media Module Level 3
The definition of 'bleed' in that specification.
工作草案 初始定义

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
bleed descriptor Chrome 不支持 No Edge 不支持 No Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No

图例

不支持

不支持

另请参阅

元数据

  • 最后修改: