首页 > 其他分享 >小学期2

小学期2

时间:2023-07-16 15:35:32浏览次数:30  
标签:star color 小学 100% height background border

虽然是小学期的代码,但是只有一部分,主要是想自存一下Java web的界面代码以及界面传值

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>太阳系星球信息录入系统</title>
<style>
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
width: 100%;
overflow: hidden;
margin: 0;
padding: 0;
background: url(image/background.jpg) no-repeat 0px 0px;
background-repeat: no-repeat;
background-size: 100% 100%;
-moz-background-size: 100% 100%;
}

body {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}

#Login {
width: 37%;
display: flex;
justify-content: center;
align-items: center;
height: 300px;
background-color: rgb(208, 244, 250);
box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
border-radius: 5px;
}

input {
margin-left: 15px;
border-radius: 5px;
border-style: hidden;
height: 30px;
width: 140px;
background-color: rgba(216, 191, 216, 0.5);
outline: none;
color: #020226;
padding-left: 10px;
}

.button {
border-color: #010417;
background-color: rgba(100, 149, 237, .7);
color: #030b2a;
border-style: hidden;
border-radius: 5px;
width: 100px;
height: 31px;
font-size: 16px;
}
</style>
</head>

<body background="background.jpg" style="background-repeat:no-repeat;background-size:100% 100%;background-attachment:fixed;">
<div id="Login">
<form action="landServlet" method="post">

<h1 style="text-align: center;color: rgba(3,11,37,0.86);font-family: 华文楷体">登录</h1>
<p>
<img src="image/Username.png" style="height: 30px">
<input id="per_id" name="per_id" type="text" autofocus required>
</p>

<p>
<img src="image/Password.png" style="height: 30px">
<input id="per_password" name="per_password" type="password" required>
</p>

<div style="text-align: center;margin-top: 30px;">
<input type="hidden" name="method" value="land"/>
<input type="submit" class="button" value="进入">
<a href="register.jsp"><input type="button" class="button" value="注册"></a>
</div>

</form>
</div>
</body>
</html>


<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import ="java.sql.*"%>
<%@ page import="DBUtil.DBUtil" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>太阳系星球系系统</title>
<style>
* {
margin: 0;
padding: 0;
}

html {
height: 100%;
width: 100%;
overflow: hidden;
margin: 0;
padding: 0;
background: url(image/background.jpg) no-repeat 0px 0px;
background-repeat: no-repeat;
background-size: 100% 100%;
-moz-background-size: 100% 100%;
}

body {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}

#contain {
width: 55%;
display: flex;
justify-content: center;
height: 800px;
background-color: rgb(230, 245, 244);
box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
border-radius: 5px;
}

.sexDiv>input,
.hobby>input {
width: 30px;
height: 17px;
}

input,
select {
margin-left: 15px;
border-radius: 5px;
border-style: hidden;
height: 30px;
width: 140px;
background-color: rgba(216, 191, 216, 0.5);
outline: none;
color: #010423;
padding-left: 10px;
}

.button {
border-color: #6ad9e7;
background-color: rgba(100, 149, 237, .7);
color: #01051c;
border-style: hidden;
border-radius: 5px;
width: 100px;
height: 31px;
font-size: 16px;
}

.introduce>textarea {
background-color: rgba(216, 191, 216, 0.5);
border-style: hidden;
outline: none;
border-radius: 5px;
}

b {
margin-left: 50px;
color: #61ffff;
font-size: 10px;
font-weight: initial;
}
</style>
</head>

<body>
<div id="contain">
<form action="starServlet" method="post">
<h1 style="text-align: center;color: #020825;font-family: 华文楷体">太阳系星球信息管理系统</h1><br>
<p style="text-align: center;">
请输入要查询的星球名称:<input id="star_name" name="star_name" type="text" autofocus required>
<input type="hidden" name="method" value="find">
<input type="submit" name="find" class="button" value="查询">&nbsp;
<input type="reset" class="button" value="重置">
<a href="add.jsp">添加星球信息</a>
</p><br>
<div style="width:100%;height:10px;float:left; position:relative; display: table-cell;vertical-align: middle; background-color: rgb(50,45,54) "></div>
<br>
<table style="text-align: center;" border="1" width="100%" align="center" cellspacing="0" cellpadding="15" >
<tr>
<th> 星球中文名 </th>
<th> 星球外文名 </th>
<th> 星球质量 </th>
<th> 星球直径 </th>
<th> 表面温度 </th>
<th> 自转周期 </th>
<th> 其他 </th>
</tr>
<%
request.setCharacterEncoding("UTF-8");
String star_name = request.getParameter("star_name");
String star_id = "";
Connection conn = DBUtil.getConnection();
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery("select * from tb_star");
while (rs.next()) {
star_id = rs.getString("star_id");
out.println("<td>" + rs.getString("star_name") + "</td>");
out.println("<td>" + rs.getString("star_names") + "</td>");
out.println("<td>" + rs.getString("star_quality") + "</td>");
out.println("<td>" + rs.getString("star_diameter") + "</td>");
out.println("<td>" + rs.getString("star_temperature") + "</td>");
out.println("<td>" + rs.getString("star_time") + "</td>");
out.println("<td><a href='starServlet?star_id=" + star_id + "&method=change_find'>修改</a> "
+ " &nbsp;<a href='starServlet?star_id=" + star_id + "&method=delete'>删除</a></td></tr>");
}
rs.close();
st.close();
conn.close();
%>
</table>
</form>
</div>
</body>
</html>

标签:star,color,小学,100%,height,background,border
From: https://www.cnblogs.com/yansans/p/17557905.html

相关文章

  • 学习笔记409—中小学NB资源汇聚!
    中小学学习工具及资料:一、网页:      1.https://basic.smartedu.cn/syncClassroom/prepare(国家中小学智慧教育平台)      2.https://www.eduyun.cn/(国家教育资源公共服务平台)      3.https://syzx-edu.com/new/#/(全国中小学实验在线平台)     ......
  • 小学篇-孩子教育
    小学篇![[Pastedimage20210906212426.png]]学前和小学低年级应该掌握的字数上小学前孩子应该完成的事情包括:常用汉字500-1000个左右,会认就行,数学20以内加减法,英语简单的听说读对话,写不要求,基本上就达标了。能在没有帮助的情况下阅读大部分中文少儿读物,以童话、寓言故事为主,知......
  • C++计算机学院2023年度小学期编程实践课程(图书管理系统)[2023-07-12]
    C++计算机学院2023年度小学期编程实践课程(图书管理系统)[2023-07-12]计算机学院2023年度小学期编程实践课程上机实验题目(一)基于学生结构体数组的图书管理系统(40分)定义学生结构体类型的数组,静态初始化学生信息(不包括借书信息)。图书使用二维字符数组或字符指针数组单独......
  • 小学数学速算技巧
    读博读够了,复习下小学数学速算技巧。什么样的计算比较容易数值小:12×2比12×7好算能凑整:比如12+18,15×2,14/2,13×10没有进位借位:比如13+15比67+78好算,99-34比102-37好算基本技巧基本思路是通过拆分构造,把复杂计算转化为简单计算,常见技巧如下:减小数值×5→......
  • 小学期C++实践
    一、链表1、#include<bits/stdc++.h>usingnamespacestd;#definelllonglong#defineN100010structnode{intval;structnode*next;};structnode*head=NULL;intx;structnode*reverseList(structnode*head){structnode*h......
  • P2433 【深基1-2】小学数学 N 合一
    【深基1-2】小学数学N合一题目描述问题1请输出IloveLuogu!问题2这里有$10$个苹果,小A拿走了$2$个,Uim拿走了$4$个,八尾勇拿走剩下的所有的苹果。我们想知道:小A和Uim两个人一共拿走多少苹果?八尾勇能拿走多少苹果?现在需要编写一个程序,输出两个数字作为答......
  • python 生成小学计算练习 docx
    python3生成二年级下计算练习,有口算,有竖式。 importrandomimportosfromdocx.sharedimportPtfromdocximportDocumentdefcreate_page(document):#口算document.add_paragraph('一、口算')operators='+-×÷'columnsNumber=3rowsNumbe......
  • 小学数学教材
    国内小学数学教材开始有一些计算利息和税后收入方面的应用题。我记得自己小学的时候,应用题多的是算水缸水池,一个进,一个出,什么时候能把水缸灌满,或者几辆车相对开,什么时候碰上了,在哪里碰上。那些应用题对应那时候的生产生活环境:解放以后县里挖了一个水库,报告文学也有写挖淮河的,那时......
  • 微课与教学辅助-中、小学数学或自然科学课程—《玩转轴对称图形》
    基于本知识点的教学目标和设计理念,作品以小贝和妈妈周末去公园游玩为教学故事线,引导学生和小贝一起发现和学习轴对称图形,教学设计主要分为如下七个环节。1、情境导入小贝和妈妈周末公园游玩,看到路边垃圾桶上的图标引入轴对称图形。引导学生观察生活中的事物,贯彻“数学来源于生活......
  • 软件测试小学期---使用selenium完成自动化测试
    在谷歌浏览器的右上角点击三个点选择设置在设置的左边栏点击扩展程序 开启开发者模式 将下载并解压好的文件导入下载地址链接:https://pan.baidu.com/s/1PiSt3a6CCgMFjHQs4-h_Fg?pwd=qqul提取码:qqul  以学生学籍信息管理系统为例登陆   根据页面元素进......