0
我被困在一個地方。我有一個HTML頁面,但我只想在打印頁面上打印一個DIV,並將其另存爲PDF格式,並保存按鈕。在A4頁面上打印並保存爲PDF
<div class="abc">
Here are some words
<div class="def">
Some more words
<div class="ghi">
This is I want for print on A4 page and save as PDF but like my letterhead with logo and other detail like microsoft word have header and footer. I want to header and footer add in header.php and footer.php but only on print and save as PDF. And this div class in the middle of letter.
<button>Click for print</button>
<button>Click to save as PDF</button>
</div>
</div>
</div>
我想打印版本,信頭
非常感謝提前。
感謝您的回覆,但我不知道@media print。 我可以有一些編碼嗎? – djmhim
已經*是編碼。這是CSS。您可以使用帶有此內容的'