上图
目前只是可以0~100的数,也没写验证,自适应布局啥的。加油吧!
适合刚入门的小白。
多看看Javascript,es6了解吗?
Java,数据库也得看哦。
源码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
margin:0;
padding:0;
}
body {
font-size: 80%;
font-family: "微软雅黑"courier monospace;
letter-spacing: 0.2em;
width: 100%;
min-width: 810px;
height: 100%;
min-height: 600px;
}
#canvas {
position: absolute;
z-index: -1;
width: 100%;
height: 100%;
}
#lum{
float: left;
position: relative;
width: 20%;
height:90%;
border: 10px solid #F1F5C7;
margin-top: 12px;
margin-left: 12px;
margin-right: 12px;
font-size: 30px;
background-color: #f8f5ca;
}
#page {
float: left;
max-width: 950px;
position: relative;
height: 550px;
width: 70%;
margin: 10px auto 10px auto;
padding: 20px;
border: 4px double #F1F5C7;
background-color: pink;
box-shadow: 10px;
border-radius: 20px;
background:url(https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3167149104,3069225610&fm=15&gp=0.jpg) no-repeat left center;
background-size: 100% 100%;
}
#title {
position: absolute;
width: 200px;
margin: 5px auto 10px auto;
font-size: 25px;
text-align: center;
box-sizing:border-box;
left: 0;
right: 0;
top: 0;
bottom