:left
:left
/* Selects the content on the left-hand pages while printing */
@page :left {
margin: 2in 3in;
}页面左右是由文档的主要书写方向决定的。例如,如果第一页的主要书写方向是从左到右,那么它将是一个:right页面,如果它具有从右到左的主要书写方向,那么它将是一个:left页面。
注意:您不能更改所有CSS属性。您只能更改margin,padding,border,和background页框的属性。所有其他CSS属性将被忽略,只有页面框,而不是页面上的文档内容,将受到影响。
语法
:left实例
@page :left {
margin: 2in 3in;
} 规范
Specification | Status | Comment |
|---|---|---|
CSS Paged Media Module Level 3The definition of ':left' in that specification. | Working Draft | No change. |
CSS Level 2 (Revision 1)The definition of ':left' in that specification. | Recommendation | Initial definition. |
浏览器兼容性
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
Basic support | ? | (Yes) | No support | 8.0 | 9.2 | ? |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
Basic support | ? | (Yes) | No support | ? | ? | ? |
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

