marks - CSS: Cascading Style Sheets 编辑
Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The 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.
Syntax
/* Keyword values */
marks: none;
marks: crop;
marks: cross;
marks: crop cross;
Values
crop
- Crop marks will be displayed.
cross
- Cross marks will be displayed.
none
- No marks will be displayed.
Formal definition
Related at-rule | @page |
---|---|
Initial value | none |
Computed value | as specified |
Formal syntax
none | [ crop || cross ]
Examples
Adding crop and cross marks
@page {
marks: crop cross;
}
Specifications
Specification | Status | Comment |
---|---|---|
CSS Paged Media Module Level 3 The definition of 'marks' in that specification. | Working Draft | Initial definition |
This CSS property was initially proposed in CSS Level 2, but was dropped from CSS Level 2 (Revision 1).
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论