Is that we need to make a web page, here is a table, there are several content (text) is required, fill out need not uploaded to the server, do a print button on the page, direct print A4 paper is ok, fixed size, only one page, I'll do form, will not get input box, and print content, great god teach ~ ~ I am a little white, a little don't understand, please speak simple some
Thank you again for the
CodePudding user response:
& lt; ! DOCTYPE html>
<meta charset="utf-8">
<meta HTTP - equiv="X - UA - Compatible" content="IE=edge" & gt;
<meta name="viewport" content="width=device - width, initial - scale=1" & gt;
<style>
The a4 - endwise {
Width: 1075 px;
Height: 1567 px;
Border: 1 px # 000 solid;
overflow: hidden;
Padding: 0;
Word - break: break - all;
The font size - adjust: 10;
}
The a4 - broadwise {
Width: 1569 px;
Height: 1073 px;
Border: 1 px # 000 solid;
overflow: hidden;
Padding: 0;
Word - break: break - all;
}
. Print {
Position: fixed;
Top: 1%;
Right: 10%;
}
</style>
<body>
& nbsp;
Understand the way: & lt; Input type="checkbox"/& gt; Network & lt; Input type="checkbox"/" & gt; Posters & lt; Input type="checkbox"/& gt; I heard that & lt; Br>
Name:
Class:
Interests: & lt; Input type="checkbox"/& gt; Reading & lt; Input type="checkbox"/& gt; Ball (& lt; Input type="checkbox"/" & gt; Football & lt; Input type="checkbox"/& gt; Basketball) & lt; Input type="checkbox"/& gt; Games & lt;/p>
The first & lt; Input type="submit" value="https://bbs.csdn.net/topics/check form a complete" & gt;
The second & lt; Input type="submit" onclick="preview ();" Value="HTTP://https://bbs.csdn.net/topics/to print" href="javascript:;"/>