1. 程式人生 > 其它 >人口資訊普查系統-JavaWeb-三

人口資訊普查系統-JavaWeb-三

今天給大家分享前端主頁面的程式碼,設有五個功能。涉及到增刪改查,用到了超連結的跳轉。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</
title> </head> <style type="text/css"> /* 清除預設樣式 同時給所有元素設定樣式 */ * { margin: 0; padding: 0; font-family: "Open Sans Light"; letter-spacing: .07em; /* 字母間隔大小 */ } /* 因為下面想設定body、wrap區域的寬高為整個視窗高度 所以得先設定html也得這樣設定 這裡得注意 body 和 html 的區別 1.如果body及其子元素想設定高度為視窗高度 那麼得設定h向下面這樣設定html 2.在body裡面設定background-color時,發現整個視窗都會變了顏色 這容易產生錯覺: body == 視窗
*/ html { height: 100%; } body { height: 100%; } /* 繼承視窗高度 設定一個漸變色向右漸變 漸變色推薦網站:https://www.sj520.cn/tools/jianbian/ 應該有你喜歡的吧 */ .wrap { height: 100%; background-image: linear-gradient(to right, #f3fafa, #f7f3fa); } /* 這個是登入區域 */ .chuze-wrap
{ width: 400px; height: 600px; background-color: rgb(232, 232, 238); /* 居中開始 */ position: relative; left: 50%; top: 50%; transform: translate(-50%, -50%); /* 居中結束 */ border-radius: 10px; padding: 0 50px; /* 左右留出空餘 */ } .button6 { background: rgb(10, 10, 10); color: rgb(250, 252, 247); border: 1px solid rgb(246, 248, 250); transition-duration: 1s; /*過渡時間*/ border-radius: 12px; padding: 13px 18px; margin-top: 20px; outline-style: none; /*去除點選時外部框線*/ position: relative; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; line-height: 30px; border: 0; border-radius: 3px; margin-top: 20px; background-image: linear-gradient(to right, #808181, #959496); font-size: 16px; text-align: center; cursor: pointer; color: #f5f0f8; font-weight: bold; } .button6:hover { background: #f6f5f7; color: #f7f5f8; transition-duration: 1s; } </style> <body> <div class="wrap"> <div class="chuze-wrap"> <class class="chuze-title"> <br> <div> <br> <br> <a href="人口登記.jsp"><button class="button6">人口資訊登記</button></a><br> <a href="查詢人口資訊.html"><button class="button6">修改人口資訊</button></a><br> <a href="刪除人口資訊.jsp"><button class="button6">刪除人口資訊</button></a><br> <a href="查詢人口資訊.jsp"><button class="button6">查詢人口資訊</button></tr></a> <a href="/人口普查系統HtmlJsp/servlet?method=chaxun"><button class="button6">人口資訊瀏覽</button></a><br></div> </div> </body> </html>