-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from LincoXiaoQ/master
#3 提交实验代码
- Loading branch information
Showing
3 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.