CSS参考手册
»
语法与规则列表
»
相关内容:
其它语法与规则参考
选择其它项
!important
comment
@import
@charset
@media
@font-face
@page
@keyframes
@page
版本:CSS2
语法:
@page
<label> <pseudo-classes>{ sRules }
取值:
<label>:
页面标识符
<pseudo-class>:
打印伪类
:first
,
:left
,
:right
说明:
设置页面容器的版式,方向,边空等。
兼容性:
浅绿
= 支持
红色
= 不支持
墨绿
= 部分支持
橙色
= 实验性质
支持版本
\类型
IE
Firefox
Safari
Chrome
Opera
版本
6.0-7.0
4.0-6.0
5.1
13.0
11.50
版本
8.0
示例:
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8" /> <title>@page_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨)" /> <style> @page:first{margin:300px;} </style> </head> <body> <div>@page:first{margin:300px;}</div> </body> </html>