CSS手册
»
语法与规则列表
»
相关内容:
其它语法与规则参考
选择其它项
!important
comment
@import
@charset
@media
@font-face
@page
@keyframes
@supports
@page
版本:CSS2
语法:
@page
<label> <pseudo-classes>{ sRules }
取值:
<label>:
页面标识符
<pseudo-class>:
打印伪类
:first
,
:left
,
:right
说明:
设置页面容器的版式,方向,边空等。
兼容性:
浅绿
= 支持
红色
= 不支持
粉色
= 部分支持
IE
Firefox
Chrome
Safari
Opera
iOS Safari
Android Browser
Android Chrome
6.0-7.0
2.0-18.0
4.0+
3.1+
15.0+
3.2+
2.1+
18.0+
9.0+
19.0+
示例:
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8" /> <title>@page - CSS手册 - API参考文档</title> <style> @page:first{margin:300px;} </style> </head> <body> <div>@page:first{margin:300px;}</div> </body> </html>