CSS手册
»
选择符列表
»
伪类选择符
»
相关内容:
其它伪类选择符
选择其它项
E:link
E:visited
E:hover
E:active
E:focus
E:lang(fr)
E:not(s)
E:root
E:first-child
E:last-child
E:only-child
E:nth-child(n)
E:nth-last-child(n)
E:first-of-type
E:last-of-type
E:only-of-type
E:nth-of-type(n)
E:nth-last-of-type(n)
E:empty
E:checked
E:enabled
E:disabled
E:target
@page-first
@page-left
@page-right
@page :left
版本:CSS2
语法:
@page :left
{ sRules }
说明:
设置页面容器位于装订线左边的所有页面使用的样式。仅用于
@page
规则。
该伪类选择符只允许定义
margin
,
padding
,
border
和
background
属性
相关查看:
@page
,
:first
,
:right
兼容性:
浅绿
= 支持
红色
= 不支持
粉色
= 部分支持
灰色
= 未知
IE
Firefox
Chrome
Safari
Opera
iOS Safari
Android Browser
Android Chrome
6.0-7.0
2.0-38.0
4.0+
3.1-8.1
15.0+
3.2-8.1
2.1-4.4.4
18.0+
IE9.0+
示例:
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8" /> <title>@page :left - CSS手册 - API参考文档</title> <style> @page :left { margin-left: 300px; } div { page-break-after: always; } </style> </head> <body> <div>页面容器位于装订线左边的所有页面左外边距为300px</div> <div>页面容器位于装订线左边的所有页面左外边距为300px</div> <div>页面容器位于装订线左边的所有页面左外边距为300px</div> </body> </html>