-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_print.html
54 lines (45 loc) · 1.22 KB
/
simple_print.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!doctype html>
<html>
<head>
<meta charset="utf-8" content="width=device-width, height=device-height">
<title>Simple Print Test</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<style>
.box {
height: 50vh;
width: 50vw;
}
.background{
background-color: rgb(0, 0, 255);
color-adjust: exact;
}
</style>
<div class="container">
<h1 class="pt-4 ">Simple Print Test</h1>
<div class="alert alert-primary" role="alert">
Just a banner.
</div>
<h2>Print</h2>
<div class="row">
<div class="col-6">
<button class="btn btn-primary btn-lg" onclick="window.print();">Print Page</button>
</div>
</div>
<h2>Info</h2>
<p>
This is a simple print test. This website prints the page as-is without opening a new tab to add formatting.
</p>
<ul>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ul>
<h2>Blue Box</h2>
<p>
Just printing a background.
</p>
<div id="content" class="box background">
</div>
</div>
</html>