ElasticSearch 6.x 学习笔记:37.新闻搜索之页面设计

1、搜索页面

(1)JSP页面

<%--
  Created by IntelliJ IDEA.
  User: Chengyuqiang
  Date: 2018/2/25 0025
  Time: 17:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ES搜索</title>
    <link type="text/css" rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="main">
    <h1>ES搜索</h1>
    <div class="box">
        <form name="form1" action="/search.do" method="post">
            <input type="search" name="query">
            <input type="submit" value="ES一下">
        </form>
    </div>
</div>
</body>
</html>

(2)css文件

body{
    margin: 0 auto;
}
.main{
    border: 1px solid #cccccc;
    width:600px;
    height: 400px;
    margin: 100px auto;
}
.main h1{
    text-align: center;
    color: chartreuse;
    margin: 50px auto;
}
.box{
    width:80%;
    height: 30px;
    border: 1px solid chartreuse;
    margin: 50px auto;
}
.box input[type="search"]{
    height: 30px;
    width: 85%;
    outline: none;
    border :0;
    font-size: 18px;
}
.box input[type="submit"]{
    height: 30px;
    width: 14%;
    outline: none;
    border :0;
    background-color: chartreuse;
    color: white;
}

(3)页面效果
这里写图片描述

2、分页页面

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值