java学生管理系统遇到的难题_写一个小demo过程中遇到的各种问题 学生管理考勤系统(网页模拟)...

*{

margin:0;

padding:0;

}

body,html{

width:100%;

height:100%;

}

body{

background-image: url("img/jhk-1549033898060.jpg");

background-size: 120%;

background-position: 50% 50%;

background-repeat: no-repeat;

font-family: "方正颜宋简体";

background-attachment: fixed;

height:90%;}

.imfor{

width:100%;

height:20%;

}

.systemimfo{

text-align: center;

font-size: 53px;

margin-top: 10px;

}

.version{

font-size: 18px;

}

.teacher{/*padding-left: 20%;*/margin-top: 1%;

}

button.btn{

margin-top: 3%;

width: 220px;

height: 45px;

margin-right: 30px;

font-size: 18px;

margin-left: 2%;

/*真的有毒,BootStrap把两个输入框并排之后没法调节中间距离...我再试试*/

}

.btngroup{

position: relative;

top:17%;

left:17%;

width:66%;

height:55%;/*border: 1px solid darkcyan;*//*我现在觉得写布局的时候先画框真的太好用了*/text-align: center;

vertical-align: middle;

padding-top: 2px;

font-size: 21px;

margin-bottom: 150px;/*float: left;*/

/*display: none;*/把这行放回去,这里注释掉是方便调试}

div.btngroup button{

height:16%;

width:19%;

margin-top: 18px;

color: aliceblue;

border: 1px solid skyblue;

background-color: rgb(52, 173, 238);

border-radius: 10px;

}

div.btngroup button:hover{

box-shadow: 3px 3px goldenrod;

}

.unattendance{

position: absolute;

top:39%;

left:66%;

width:30%;

height:45%;

border: 1px solid firebrick;

}

#end{

background-color: red;

height:15%;

color: antiquewhite;

margin-top: 20px;

border: 1px solid darkorange;

}

#end:hover{

box-shadow: 1px 2px lightskyblue

}

学生管理考勤系统

Version:1.0.0

授课教师:

授课班级:

确认信息并开始考勤

学生姓名

var stat = document.getElementById("end");var absent = document.getElementById("absent");var clear = document.getElementById("clear");//var temp = [];

//console.log(btn);

//console.log(btngroup);

//console.log(imfor);

functionchange(into){//var style = window.getComputedStyle(into);

console.log(into);

into.style= "background-color:orange;"

//into.style.backgroundColor = "orange";

}     //本来用的是这个写法,但是估计又栽在了闭包问题上,于是只能换上面那种笨比写法

//for(let i = 0; i < btn.length;i++){

//btn_style = window.getComputedStyle(btn[i]);

//btn[i].onclick = function(){

//console.log("?");

//if(btn_style.backgroundColor == "rgb(52, 173, 238)"){

console.log(arguments[0]);

//btn[i].style.backgroundColor = "orange";

//}

//}

//};

//

//

//等搞定了闭包回来实现这个

//for(let j = 0; j < btn.length; j++){

//btn_style = window.getComputedStyle(btn[j]);

//stat.onclick = function(){

//if(btn_style.backgroundColor == "orange"){

//temp += " ";

//temp += btn[j].innerHTML;

//console.log("1");

//}

//}

//};

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值