个人作业2 前端

1、主页面

index.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>顶会查询</title>

<link rel="stylesheet" type="text/css" href="css/style.css">

<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/vector.js"></script>
<style type="text/css">
body{
background:url("./backs.jpg");
background-repeat:repeat;
background-size:1600px 800px;
background-position-center:100%;
}
</style>

<style>
input[type=submit] {
200px;
background-color: #E6E6FA;
color: #8A2BE2;
padding: 14px 20px;
margin: 100px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
h1
{
margin: 40px 0;
font-family:STKaiti;
font-size:50px;
color: #8A2BE2;
text-align:center
}
</style>
</head>
<body>
<div id="container" align="center">
<div align="center">
<h1>欢迎</h1>
<font style="color: #8A2BE2;text-align:center">-----------------------------------------------</font>
<div align="center">
<form id="entry_form">
<input type="submit" id="entry_btn" value="论文查找" formaction="indexs.jsp" formmethod="post"/>
<input type="submit" id="entry_btn2" value="热词分析" formaction="show.jsp" formmethod="post"/>
</form>
</div>
</div>
</div>
<script type="text/javascript">
$(function(){
$("#entry_name").focus();
$(document).keydown(function(event){
if(event.keyCode==13){
$("#entry_btn").click();
}
});
});
</script>
</body>
</html>

原文地址:https://www.cnblogs.com/lx06/p/14907776.html