<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>教学管理系统</title> <style type="text/css"> body { background-color: #F5DEB3 } table { /*表格边框为实线或者是空心双线*/ border-collapse: collapse; /*边框与边框的空间*/ border-spacing: 0; } a { color: rgb(60, 114, 53); text-decoration: none; font-size: 12px; } a:hover { color: rgb(60, 114, 53); text-decoration: underline; font-size: 12px; } a:visited { color: rgb(0, 106, 78); font-size: 12px; } /*整个tab层居中,宽度为600px*/ #tabDiv { height:360px; margin: 1em auto; padding-bottom: 10px; border-right: rgb(30,144,255) 2px solid; border-top: rgb(30,144,255) 2px solid; border-left: rgb(30,144,255) 2px solid; border-bottom: rgb(30,144,255) 2px solid; background: #ffffff; } /*tab头的样式*/ #tabsHead { padding-left: 0px; height: 26px; background-color: rgb(179, 247, 19); font-size: 1em; margin: 1px 0px 0px; color: rgb(179, 247, 19); line-height: 26px; } /*已选tab头(超链接)的样式*/ .curtab { padding-top: 0px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-right: rgb(209, 226, 49) 1px solid; font-weight: bold; float: left; cursor: pointer; background: #ffffff; } /*未选tab头(超链接)的样式*/ .tabs { border-right: rgb(209, 226, 49) 1px solid; padding-top: 0px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; font-weight: normal; float: left; cursor: pointer; } p { font-size: 12pt; text-indent: 2em; } li { border-bottom-style: solid; border-bottom-color: #EEE; border-bottom-width: thin; height: 25px; font-family: "宋体"; font-size: 20pt; } </style> <script type="text/jscript"> //显示tab(tabHeadId:tab头中当前的超链接;tabContentId要显示的层ID) function showTab(tabHeadId,tabContentId) { //tab层 var tabDiv = document.getElementById("tabDiv"); //将tab层中所有的内容层设为不可见 //遍历tab层下的所有子节点 var taContents = tabDiv.childNodes; for(i=0; i<taContents.length; i++) { //将所有内容层都设为不可见 if(taContents[i].id!=null && taContents[i].id != 'tabsHead') { taContents[i].style.display = 'none'; } } //将要显示的层设为可见 document.getElementById(tabContentId).style.display = 'block'; //遍历tab头中所有的超链接 var tabHeads = document.getElementById('tabsHead').getElementsByTagName('a'); for(i=0; i<tabHeads.length; i++) { //将超链接的样式设为未选的tab头样式 tabHeads[i].className='tabs'; } //将当前超链接的样式设为已选tab头样式 document.getElementById(tabHeadId).className='curtab'; document.getElementById(tabHeadId).blur(); } </script> </head> <body> <h1 align="center">课 程 申 请</h1> <br><br> <form action = "" method = "get"> <div style = "text-align:center"><h2>课程审批提交</h2></div> <div style = "text-align:left"> <table border = "1" style = "border-collapse:collapse" align="center" cellspacing="10" id="tabDiv"> <tr> <td>课程名称</td> <td><input type = "text" name = "CourseName" size = "15" maxlength = "10"></td> <td>任课教师</td> <td><input type = "text" name = "CourseTeacher" size = "15" maxlength = "10"></td> </tr> <tr> <td>学分</td> <td><input type = "text" name = "Credit" size = "15" maxlength = "10"></td> <td>授课专业</td> <td><input type = "text" name = "CourseMajor" size = "15" maxlength = "10"></td> </tr> <tr><td colspan="6" style="text-align:center">课程目标</td></tr> <tr><td colspan = "6"> 本课程目标由<input type = "text" name = "way1" size = "7" maxlength = "10">、<input type = "text" name = "way2" size = "7" maxlength = "10">和<input type = "text" name = "work" size = "7" maxlength = "10">共3部分组成,具体如下: <div style="text-align:center">课程目标以及成绩分配</div><br> <table border = "1" style = "border-collapse:collapse" align="center"> <tr> <td rowspan="2">课程目标</td><td colspan="3">考核与评价方式及成绩</td><td rowspan="2">分配成绩总分</td> </tr> <tr> <td>作业</td><td>实验</td><td>期末考试</td> </tr> <tr><td>课程目标1</td><td><input type = "text" name = "work1" size = "7" maxlength = "10"></td><td><input type = "text" name = "science1" size = "7" maxlength = "10"></td><td><input type = "text" name = "exam1" size = "7" maxlength = "10"></td><td><input type = "text" name = "score1" size = "7" maxlength = "10"></td></tr> <tr><td>课程目标2</td><td><input type = "text" name = "work2" size = "7" maxlength = "10"></td><td><input type = "text" name = "science2" size = "7" maxlength = "10"></td><td><input type = "text" name = "exam2" size = "7" maxlength = "10"></td><td><input type = "text" name = "score2" size = "7" maxlength = "10"></td></tr> <tr><td>课程目标3</td><td><input type = "text" name = "work3" size = "7" maxlength = "10"></td><td><input type = "text" name = "science3" size = "7" maxlength = "10"></td><td><input type = "text" name = "exam3" size = "7" maxlength = "10"></td><td><input type = "text" name = "score3" size = "7" maxlength = "10"></td></tr> <tr><td>合计</td><td></td><td></td><td></td><td><input type = "text" name = "score0" size = "7" maxlength = "10"></td></tr> </table> </td> </tr> </table> </div> <input type="hidden" name = "AuditStatus" value="待审核"> <div style = "text-align:center;"> <input type = "submit" value = "申请" style="width:70px; height:30px; margin:5px 30px"/> <input type = "reset" value = "重置" style="width:70px; height:30px; margin:5px 30px"/> </div> <br><br> </form> </body> </html>
标签:总结,solid,每日,padding,rgb,tab,2023.4,font,border From: https://www.cnblogs.com/wllovelmbforever/p/17293704.html