Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

HTML5 header not printing at top of every page

more options

I've created an HTML file that uses the new HTML5 tag <header>. But when I go to print that file from within Firefox 12, it only prints on the top of the first page rather than the top of every page as I would expect from a word processor. Or am I misunderstanding the purpose of <header>?

I've created an HTML file that uses the new HTML5 tag <header>. But when I go to print that file from within Firefox 12, it only prints on the top of the first page rather than the top of every page as I would expect from a word processor. Or am I misunderstanding the purpose of <header>?

Tất cả các câu trả lời (3)

more options

The way Firefox (and, to be honest, all other browsers) currently implement the new HTML5 <header> tag there is no practical difference between <header> and <body>. Having the browser print the <header> at the top of every page of a printout would be immensely useful for report generation and would be the evident purpose behind the tag.

more options

I've read you can use "position:fixed; top:0;" to get an element to print on each page, but you would need to accommodate this somehow so content is not overwritten...