Skip to content

Commit

Permalink
Merge pull request #291 from LincoXiaoQ/master
Browse files Browse the repository at this point in the history
#3 提交实验代码
  • Loading branch information
zengsn authored Oct 28, 2016
2 parents a8ad4ac + 0d79642 commit a4fd4e8
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
58 changes: 58 additions & 0 deletions labs/1414080902212/css/File_upload.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

#head{
height: 96px;
background: rgb(20,200,120);
}
#content{
height: 360px;
background: orange;
padding: 80px 0;
}
#tail{
height: 64px;
}
#head_left{
/*float使块级元素同行*/
float: left;
/*用比例做宽度单位*/
width: 90%;
padding: 60px 0 0 20px;
}
#head_right_img{
width: 64px;
height: 64px;
background: pink;
margin: 16px 0;
}
.title_text{
display: block;
float: left;
width: 80px;
height: 36px;
line-height: 36px;
font-family: 微软雅黑;
text-decoration:none;
text-align: center;
color: white;
}
a.title_text:hover{
background:rgb(20,160,120);
}

/*内容部分*/
#content_center{
height: 280px;
width: 400px;
background: green;
margin: 0 auto;
padding-top: 80px;
border-radius: 10px;
font-size: 12px;
}
#content_center input{
display: block;
width: 75%;
height: 2em;
margin: 8px auto;
padding: 16px,5px;
}
36 changes: 36 additions & 0 deletions labs/1414080902212/index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>上传文件</title>
</head>
<link rel="stylesheet" type="text/css" href="css/File_upload.css">
<body>
<div id="head">
<div id="head_left">
<a class="title_text" href="">主页</a>
<a class="title_text" href="">文件</a>
<a class="title_text" href="">上传</a>
<a class="title_text" href="">(敬请期待)</a>
</div>
<div id="head_right">
<img id="head_right_img" src="src/head.png" alt="usrename">
</div>
</div>
<div id="content">
<form action="" id="content_center">
<input type="text" value="文件名" /><br>
<input type="text" value="文件描述"/><br>
<input type="file" />
</form>
</div>
<div id="tail"></div>
</body>
</html>
Binary file added labs/1414080902212/src/head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a4fd4e8

Please sign in to comment.