Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 打印文档中未保留填充_Css_Firefox_Media Queries - Fatal编程技术网

Css 打印文档中未保留填充

Css 打印文档中未保留填充,css,firefox,media-queries,Css,Firefox,Media Queries,我正在尝试创建css样式,以便在Firefox中打印文档。 我想一些内容,放在一个容器内,在顶部和底部有相等的间距 为此,我添加了一个具有顶部和底部填充的容器,并在其中放置了一些内容: …某些内容(“div”、“p”元素) 现在,Firefox支持框装饰中断css属性(允许 当容器“点击”分页符时重复边框/填充/边距) 我正在为容器设置“框装饰中断:克隆”,并期望发生以下行为: Printed page 1: ------------ | | <- correct s

我正在尝试创建css样式,以便在Firefox中打印文档。 我想一些内容,放在一个容器内,在顶部和底部有相等的间距

为此,我添加了一个具有顶部和底部填充的容器,并在其中放置了一些内容:


…某些内容(“div”、“p”元素)
现在,Firefox支持框装饰中断css属性(允许 当容器“点击”分页符时重复边框/填充/边距)

我正在为容器设置“框装饰中断:克隆”,并期望发生以下行为:

Printed page 1:
------------
|          | <- correct spacing
|  content |
|  content |
|          | <- correct spacing
------------

Printed page 2:
------------
|          | <- correct spacing
|  content |
|  content |
|          | <- correct spacing
------------
打印的第1页:
------------
||这应该是Firefox bug这应该是Firefox bug
Printed page 1:
------------
|          | <- correct spacing
|  content |
|  content |
|          | <- correct spacing
------------

Printed page 2:
------------
|          | <- correct spacing
|  content |
|  content |
|          | <- correct spacing
------------
Printed page 1:
------------
|          | <- correct spacing
|  content |
|  content |
|  content | <- (!) incorrect spacing, content "ignores" parent padding
------------

Printed page 2:
------------
|          | <- correct spacing
|  content |
|          |
|          |
------------