首页 > 其他分享 >每日小结(16)

每日小结(16)

时间:2023-03-13 21:14:46浏览次数:60  
标签:16 小结 每日 查询 padding 1px tab font border

对一个地铁信息查询系统做了些,数据库的操作,对前端页面的编写,也找了一些内容比如如何在一个界面进行点击转换。

<!DOCTYPE html>
<html>
<head>
<title>地铁信息查询</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
/*设置超链接样式*/
table {
border-collapse: collapse;
border-spacing: 0;
}

a {
color: #5086a5;
text-decoration: none;
font-size: 12px;
}

a:hover {
color: #5086a5;
text-decoration: underline;
font-size: 12px;
}

a:visited {
color: #5086a5;
font-size: 12px;
}
/*整个tab层居中,宽度为600px*/
#tabDiv {
width: 600px;
margin: 1em auto;
padding-bottom: 10px;
border-right: #b2c9d3 1px solid;
border-top: #b2c9d3 1px solid;
border-left: #b2c9d3 1px solid;
border-bottom: #b2c9d3 1px solid;
background: #ffffff;
}
/*tab头的样式*/
#tabsHead {
padding-left: 0px;
height: 26px;
background-color: #e8f7fc;
font-size: 1em;
margin: 1px 0px 0px;
color: #5086a5;
line-height: 26px;
}
/*已选tab头(超链接)的样式*/
.curtab {
padding-top: 0px;
padding-right: 10px;
padding-bottom: 0px;
padding-left: 10px;
border-right: #b2c9d3 1px solid;
font-weight: bold;
float: left;
cursor: pointer;
background: #ffffff;
}
/*未选tab头(超链接)的样式*/
.tabs {
border-right: #c1d8e0 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: 12pt;
}
</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>
<div style="width: 100%; font-family: 微软雅黑; text-align: center; font-size: 20pt;">地铁信息查询</div>

<div id="tabDiv" style="width: 1000px">

<div id="tabsHead">
<a id="tabs1" class="curtab" href="javascript:showTab('tabs1','tabContent1')">换乘查询</a> <a id="tabs2" class="tabs" href="javascript:showTab('tabs2','tabContent2')">线路查询</a> <a id="tabs3" class="tabs" href="javascript:showTab('tabs3','tabContent3')">站点查询</a>
</div>

<div id="tabContent1" style="display: block">
<table style="border-width: 0; width: 100%">
<tr>
<td colspan="3" rowspan="3">
<form class="form-inline" action="${pageContext.request.contextPath}/findUserByPageServlet" method="post">
<div>
换乘查询
</div>
<div class="form-group">
<label for="origin">出发地</label>
<input type="text" name="origin" class="form-control" id="origin" >
</div>
<div class="form-group">
<label for="distination">目的地</label>
<input type="text" name="distination" class="form-control" id="distination" >
</div><br>

<button type="submit" class="btn btn-default">查询</button>
</form>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</div>
<!--以下为获奖记录部分内容-->
<div id="tabContent2" style="display: none">
<form class="form-inline" action="${pageContext.request.contextPath}/findUserByPageServlet" method="post">
<div>
线路查询
</div>
<div class="form-group">
<label for="xianlumingcheng">线路名称</label>
<input type="text" name="xianlumingcheng" class="form-control" id="xianlumingcheng" >
</div>
<div class="form-group">
<label for="xianlumingcheng1">线路名称:</label>
<select name="xianlumingcheng1" class="form-control" id="xianlumingcheng1">
<option value="1号线">1号线</option>
<option value="2号线">2号线</option>
<option value="3号线">3号线</option>
</select><br>
</div>

<button type="submit" class="btn btn-default">查询</button>
</form>
</div>
<div id="tabContent3" style="display: none">
<form class="form-inline" action="${pageContext.request.contextPath}/findUserByPageServlet" method="post">
<div>
站点查询
</div>
<div class="form-group">
<label for="zhandianmingcheng">站点名称</label>
<input type="text" name="zhandianmingcheng" class="form-control" id="zhandianmingcheng" >
</div>
<div class="form-group">
<label for="zhandianfenlei">站点分类:</label>
<select name="zhandianmingcheng" class="form-control" id="zhandianfenlei">
<option value="0">0</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
</select>
</div>
<div class="form-group">
<label for="zhandianmingcheng1">站点名称:</label>
<select name="zhandianmingcheng1" class="form-control" id="zhandianmingcheng1">

<option value="1号线">1号线</option>
<option value="2号线">2号线</option>
<option value="3号线">3号线</option>
</select><br>
</div>

<button type="submit" class="btn btn-default">查询</button>
</form>
</div>
</div>
<hr />

</body>

 

 


</html>

 

标签:16,小结,每日,查询,padding,1px,tab,font,border
From: https://www.cnblogs.com/jingyk/p/17212871.html

相关文章

  • 3月13日每日总结
    今天有王建民老师的课,今天学习了PSP,PSP,即PersonalSoftwareProcess,是个人软件过程的意思。是一种可用于控制、管理和改进个人工作方式的自我持续改进过程,是一个包括软件......
  • P1638 逛画展
    逛画展题目描述博览馆正在展出由世上最佳的m位画家所画的图画。游客在购买门票时必须说明两个数字,a和b,代表他要看展览中的第a幅至第b幅画(包含a,b)之间的所有......
  • 面试题208 16-35学习
    16、Files的常用方法都有哪些?existcreateFilecreateDirectorywritereadcopysizedeletemove17、什么是反射?所谓反射,是java在运行时进行自我观察的能力,通过class、construct......
  • 16.MySQL数据库之mysql-5.7 show engine innodb status 详解,常用的地方一、死锁分析 
     一、show engine innodb status 简介:show engine innodb status 是mysql提供的一个用于查看innodb引擎时间信息的工具,就目前来说有两处比较常用的地......
  • 16条MySQL使用规范
     1.禁止使用select*阿里开发规范中,有这么一句话:**select***会查询表中所有字段,如果表中的字段有更改,必须修改SQL语句,不然就会执行错误。查询出非必要的字段,徒增......
  • [转载from jayant97]nRF9160与nRF Cloud 超详细入门攻略
    原文链接:nRF9160与nRFCloud超详细入门攻略1.产品简介1.1.nRFCloud​ nRFCloud是NordicSemiconducotr公司在AWS上搭建的IoT平台,提供设备注册(CloudProvisioning......
  • 16
    建立一套以数据采集为基础,数据分析、统计、管控为核心的综合性能源管理系统,详细需求描述如下:1、数据收集功能:生产区域以车间为主体,通过计量仪表远程收集蒸汽、冷凝水、电......
  • 转载自 https://blog.csdn.net/m0_52165864/article/details/126218082
    Linux系列之系统监控命令 目录1、top命令的使用1、系统统计信息2、系统进程信息2、free命令使用:内存3、df命令的使用:磁盘4、ps命令的使用5、crontab命令6、查看端口的......
  • csp201612-4
    题目:计算机软件能力认证考试系统区间DP为了使霍夫曼编码变成字典序,只需要将挑选顺序改为每次都选择相邻的即可每次合并都是累加合并字母频数*1,等同于霍夫曼编码的一单......
  • csp201612-2
    题目:计算机软件能力认证考试系统#include<bits/stdc++.h>usingnamespacestd;doubleT[10]={0,45,345,1245,7745,13745,22495};doubler[10]={3500,5000,8000,12500,......