<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <title>生产工序信息</title> <style> /* 整体页面布局和样式 */ body { font-family: Arial, sans-serif; background-color: #f4f4f4; background-image: url('img.jpg'); /* 添加背景图片 */ background-size: cover; /* 使背景图片覆盖整个页面 */ background-position: center; /* 背景图片居中 */ background-repeat: no-repeat; /* 不重复背景图片 */ } h1 { text-align: center; color: #ece9e9; } form { background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); width: 400px; margin: 0 auto; } label { display: block; margin-bottom: 5px; font-weight: bold; } input[type="text"], input[type="number"], select { width: 100%; padding: 8px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 3px; } button { background-color: #007BFF; color: #fff; padding: 10px 15px; border: none; border-radius: 3px; cursor: pointer; display: block; /* Ensures button is a block element */ margin: 0 auto; /* Centers the button */ } button:hover { background-color: #0056b3; } /* 结果展示区域样式 */ .result-section { margin-top: 20px; background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); width: 400px; margin: 0 auto; } h2 { color: #f1ecec; } p { margin: 5px 0; } </style> </head> <body> <h1>生产工序信息</h1> <form method="post" action="processProductionProcess.jsp"> <label for="process_id">工序 ID</label> <input type="text" id="process_id" name="process_id" required> <label for="process_name">工序名称</label> <input type="text" id="process_name" name="process_name" required> <label for="team_id">所属班组 ID</label> <input type="text" id="team_id" name="team_id" required> <label for="sequence_number">工序顺序号</label> <input type="number" id="sequence_number" name="sequence_number" value="0" required> <label for="standard_time">标准工时</label> <input type="number" id="standard_time" name="standard_time" value="0" required> <label for="remarks">备注</label> <input type="text" id="remarks" name="remarks"> <button type="submit">提交</button> </form> <%-- 结果展示部分 --%> <% String processId = request.getParameter("process_id"); String processName = request.getParameter("process_name"); String teamId = request.getParameter("team_id"); String sequenceNumber = request.getParameter("sequence_number"); String standardTime = request.getParameter("standard_time"); String remarks = request.getParameter("remarks"); if (processId != null) { %> <div class="result-section"> <h2>输入结果</h2> <p><strong>工序 ID:</strong> <%= processId %></p> <p><strong>工序名称:</strong> <%= processName %></p> <p><strong>所属班组 ID:</strong> <%= teamId %></p> <p><strong>工序顺序号:</strong> <%= sequenceNumber %></p> <p><strong>标准工时:</strong> <%= standardTime %></p> <p><strong>备注:</strong> <%= remarks != null ? remarks : "无" %></p> </div> <% } %> </body> </html>
标签:2024.10,background,color,border,工序,周三,5px,margin From: https://www.cnblogs.com/Sunyiran/p/18447639