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

marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets.

Crop marks and cross marks are printed outside the page box. To have room to show crop and cross marks, the final pages will have to be somewhat bigger than the page box.

句法

/* Keyword values */
marks: none;
marks: crop;
marks: cross;
marks: crop cross;
					

crop

Crop marks will be displayed.

cross

Cross marks will be displayed.

none

No marks will be displayed.

形式定义

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

形式句法

none | [ crop || cross ]
					

范例

Adding crop and cross marks

@page {
  marks: crop cross;
}
					

规范

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

This CSS property was initially proposed in CSS Level 2, but was dropped from CSS Level 2 (Revision 1).

浏览器兼容性

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
marks 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

图例

不支持

不支持

另请参阅

元数据

  • 最后修改: