<%@ 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 } .content { height: calc(90vh - 100px); overflow-y: scroll; } table { /*表格边框为实线或者是空心双线*/ border-collapse: collapse; /*边框与边框的空间*/ border-spacing: 0; padding: 40px ; } 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:550px; 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"); for(i=0; i<tabHeads.length; i++) { //将超链接的样式设为未选的tab头样式 tabHeads[i].className='tabs'; } } </script> </head> <% String all_leaf=request.getParameter("all_leaf"); String the_leaf=request.getParameter("the_leaf"); if(the_leaf==null){ the_leaf="1"; } all_leaf="10"; int the_leaves=Integer.valueOf(the_leaf); int all_leaves=Integer.valueOf(all_leaf); %> <body> <h1 align="center">课 程 浏 览</h1> <form action="" method="get"> <table id="tabDiv" border="1" style="font-size:18px;width:780px"> <tr> <td style="height:45px;width:250px;"> 编号: <input text="text" id="lesson_num" size="10px" placeholder="课程编号" style="font-size:18px"></td> <td style="height:45px;width:250px"> 身份: <select name="who" style="font-size:18px"> <option value="" disable select hidden>查看</option> <option value="自己">显示自己课程</option> <option value="所有人">显示所有课程</option> </select> </td> <td style="height:45px;width:240px" align="center">操作</td> <td><button id="s_l_num" style="height:45px;width:60px">查询</button></td> </tr> <tr><td colspan="4"> </td></tr> <tr> <td style="width:100%;height:30px" colspan="4"> <div style="text-align:center;"> <a href="Browse_lesson.jsp?the_leaf=<%=the_leaves-1 %>&all_leaf=<%=all_leaf %>" style="font-size:18px"> <%if(the_leaves!=1) %><u>上一页</u></a> <%for(int i=1;i<=all_leaves;i++) {%> <a href="Browse_lesson.jsp?Browse_lesson.jsp?the_leaf=<%=i %>&all_leaf=<%=all_leaf %>"><u style="font-size:18px"> <%if(i==the_leaves)%><font color="red"><%out.print(i); %></font></u></a> <%} %> <%if(the_leaves<10) {%><a href="Browse_lesson.jsp?the_leaf=<%=the_leaves+1 %> &all_leaf=<%=all_leaf %>" style="font-size:18px;"><u>下一页</u></a> <%} %> </div> </td></tr> </table> </form> </body> </html>
标签:总结,每日,padding,rgb,nbsp,2023.4,font,border,size From: https://www.cnblogs.com/wllovelmbforever/p/17284431.html