利用网页的一些小知识写了一个小网页,比较简单,就直接贴代码了,欢迎交流,一起学习
如图
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>猜数字小游戏(make by xiaoming)</title>
<style type="text/css">
body {
font-size: 80%;
font-family: "微软雅黑"courier monospace;
letter-spacing: 0.2em;
background-color: #efefef;
}
#page {
max-width: 950px;
height: 500px;
margin: 10px auto 10px auto;
padding: 20px;
border: 4px double #000000;
background-color: yellow;
box-shadow: 10px;
border-radius: 20px;
}
#title {
width: 250px;
margin: 5px auto 10px auto;
font-size: 25px;
text-align: center;
}
#submit {
text-align: center;
padding-top: 150px;
}
#footer {