<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<style>
*,body{
margin: 0;
padding: 0;
font-family: "微软雅黑";
text-align: center;
}
input{
margin-top:180px;
}
input + input{
cursor: pointer;
}
p{
width: 500px;
margin: 20px auto 0;
text-align:left;
}
</style>
<script>
function fnBtn(){
var zmkt=('zmkt');
var num=Number();
/* (typeof(num));*/
if(num>0 && num<6){
alert("未及格");
}else if(num==6){
alert("及格");
}else if(num>6 && num<11){
alert("成绩优秀");
}else if(num!==Number || num<1 ||num>10){
alert("请输入有效成绩");
}
}