-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
72 lines (70 loc) · 1.5 KB
/
index.php
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>网页转换工具</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f1f1f1;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.form {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: #fff;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
border-radius: 10px;
max-width: 500px;
width: 100%;
}
input[type="text"] {
padding: 10px;
margin: 10px;
width: 100%;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 16px;
}
button[type="submit"] {
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px;
margin: 10px;
cursor: pointer;
font-size: 16px;
}
label {
font-size: 16px;
margin: 10px;
}
</style>
</head>
<body>
<div class="container">
<form class="form" method="post" action="convert.php">
<h2>网页转换工具</h2>
<input type="text" name="url" placeholder="请输入链接">
<label for="pdf">转PDF</label>
<input type="radio" name="format" id="pdf" value="pdf" checked>
<label for="word">转Word</label>
<input type="radio" name="format" id="word" value="word">
<button type="submit">确认</button>
</form>
</div>
</body>
</html>