高階檢索介面設計
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style>
</style>
<link rel="stylesheet" href="css/font-awesome.min.css">
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-weight: 500;
font-family: "Microsoft YaHei", "宋體", "Segoe UI", "Lucida Grande",
Helvetica, Arial, sans-serif, FreeSans, Arimo;
}
#container {
width: 100%;
height: 102px;
margin: 0 auto;
position: absolute;
}
div.search {
padding: 30px 0;
}
form {
position: relative;
width: 830px;
margin: 0 auto;
}
input, button {
border: none;
outline: none;
}
input {
width: 100%;
height: 42px;
padding-left: 13px;
}
button {
height: 42px;
width: 70px;
cursor: pointer;
position: absolute;
}
.bar1 {
background: #A3D0C3;
}
.bar1 input {
border: 2px solid #7BA7AB;
border-radius: 5px;
background: #F9F0DA;
color: #9E9C9C;
}
.bar1 button {
top: 0;
right: 0;
background: #7BA7AB;
border-radius: 0 5px 5px 0;
}
.bar1 button:before {
content: "搜尋";
font-family: FontAwesome;
font-size: 16px;
color: #F9F0DA;
}
.superbut {
position: absolute;
content: "高階搜尋";
background: #F9F0DA;
font-family: FontAwesome;
font-size: 16px;
color: #7BA7AB;
width: 106px;
height: 42px;
left: 654px;
}
.superDiv {
position: absolute;
width: 756px;
height: 300px;
background: #F9F0DA;
left: 213px;
top: -200px;
z-index: -1;
}
.placeul input {
height: 25px;
border: 1px solid black;
}
.superInput {
width: 580px;
height: 260px;
margin: auto;
margin-top: 20px;
padding: 10px;
}
.button {
width: 80px;
height: 40px;
display: block;
margin: auto;
background: #F9F0DA;
background-image: -webkit-linear-gradient(top, #7892c2, #476e9e);
background-image: -moz-linear-gradient(top, #7892c2, #476e9e);
background-image: -ms-linear-gradient(top, #7892c2, #476e9e);
background-image: -o-linear-gradient(top, #7892c2, #476e9e);
background-image: linear-gradient(to bottom, #7892c2, #476e9e);
-webkit-border-radius: 10;
-moz-border-radius: 10;
border-radius: 10px;
text-shadow: 0px 1px 0px #283966;
-webkit-box-shadow: 0px 0px 0px 2px #9fb4f2;
-moz-box-shadow: 0px 0px 0px 2px #9fb4f2;
box-shadow: 0px 0px 0px 2px #9fb4f2;
font-family: kaiti;
color: #ffffff;
font-size: 16px;
border: solid #4e6096 1px;
text-decoration: none;
background: #7892c2;
background: #7892c2;
background: #7892c2;
}
.button:hover {
color: #ffffff;
background: #476e9e;
text-decoration: none;
}
</style>
</head>
<body>
<div class="place">
<span>位置:</span>
<ul class="placeul">
<li><a href="#">首頁</a></li>
<li><a href="#">資料分析</a></li>
<li><a href="#">高階檢索</a></li>
</ul>
</div>
<div id="container">
<div class="search bar1">
<form>
<input type="text" placeholder="請輸入您要查詢的檔名"> <input
type="button" style="border-radius: 0px; padding-left: 0px;"
class="superbut" value="高階搜尋" onclick="scan()">
</button>
<button type="submit"></button>
</form>
</div>
</div>
<div class="superDiv">
<div class="superInput">
<ul class="placeul">
<li><input name="" type="checkbox" value="" checked="checked" /></li>
<li><input type="text" placeholder="姓名"></li>
<li><input type="text" placeholder="年齡"></li>
<li><input type="text" placeholder="檔名"></li>
</ul>
<Br /> <Br /> <Br />
<ul class="placeul">
<li><input name="" type="checkbox" value="" checked="checked" /></li>
<li><input type="text" placeholder="年齡區間從"></li>
<li><input type="text" placeholder="到"></li>
</ul>
</ul>
<Br /> <Br /> <Br />
<ul class="placeul">
<li><input name="" type="checkbox" value="" checked="checked" /></li>
<li><input type="text" placeholder="左右前斜位角度從"></li>
<li><input type="text" placeholder="到"></li>
</ul>
<Br /> <Br /> <Br />
<ul class="placeul">
<li><input name="" type="checkbox" value="" checked="checked" /></li>
<li><input type="text" placeholder="頭足位角度從"></li>
<li><input type="text" placeholder="到"></li>
</ul>
<Br /> <Br /> <Br />
<ul class="placeul">
<li><input name="" type="checkbox" value="" checked="checked" /></li>
<li><input type="text" placeholder="輻射劑量從"></li>
<li><input type="text" placeholder="到"></li>
</ul>
<Br /> <Br /> <Br />
<ul class="placeul" style="display: block; text-align: center">
<li><input style="visibility: hidden;" type="button"
class=button value="搜尋" onclick="unscan()"></li>
<li><input style="border-radius: 0px; text-padding-left: -3px;"
type="button" class=button value="搜尋" onclick="unscan()"></li>
<li><input style="visibility: hidden; width: 20px"
type="button" class=button value="搜尋" onclick="unscan()"></li>
<li><input style="border-radius: 0px; text-padding-left: -3px;"
type="button" class=button value="取消" onclick="unscan()"></li>
</ul>
</div>
</div>
</body>
<script type="text/javascript" src="jq/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
function scan() {
var box = $(".superDiv");
$(".superDiv").css({
"top" : "-200px",
"z-index" : "-1"
}).animate({
top : 111
}, 1000, function() {
$(this).css({
"top" : "111px",
"z-index" : "1"
})
});
}
function unscan() {
var box = $(".superDiv");
$(".superDiv").css({
"top" : "111px",
"z-index" : "-1"
}).animate({
top : -200
}, 1000, function() {
$(this).css({
"top" : "-200px",
"z-index" : "-1"
})
});
}
</script>
</html>
效果圖