How to declare a div in @page @top-left

前端 未结 2 1476
感情败类
感情败类 2021-01-21 03:07

How do I declare that a DIV should be displayed in top-left corner of every page and not in its relative position.

I have a div like:

2条回答
  •  青春惊慌失措
    2021-01-21 03:38

    I realise that this question is a bit old, but for anyone like me who comes here searching for a way to do this, it is possible using CSS3 running elements: http://www.w3.org/TR/2007/WD-css3-gcpm-20070504/#running1

    In this example, the header is hidden from view in all media types except print. On printed pages, the header is displayed top center on all pages, except where h1 elements appear.

    
    ...
    
    Introduction

    An introduction

提交回复
热议问题