代码如下
<!DOCTYPE html>
<html>
<head>
<title>随机数生成器</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
text-align: center;
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
h1 {
color: #333;
}
.container {
width: 300px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 10px;
}
input[type="number"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
borde