html - 有没有办法在 html+/css 页面上查看已提交的响应?
问题描述
这里的第一个问题,如果我做错了什么,请告诉我。
有没有办法查看通过表单提交的回复?我已经制作了一个表格,但想知道如何查看已提交的回复。
这是我所做的:抱歉有很多错误:)
我非常感谢您提前提供的任何帮助:
<html>
<body>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: "", sans-serif;
}
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 15px;
color: #818181;
display: block;
transition: 0.3s;
}
.sidenav a:hover {
color: #f1f1f1;
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
</style>
</head>
<body>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="http://127.0.0.1:5500/home.html">home</a>
<a href="http://127.0.0.1:5500/shop.html">shop</a>
<a href="http://127.0.0.1:5500/about%20us.html">about us</a>
<a href="http://127.0.0.1:5500/contact%20us.html">contact us</a>
<a href="http://127.0.0.1:5500/stockists.html">become a stockist</a>
</div>
<span style="font-size:30px;cursor:pointer" onclick="openNav()">☰ </span>
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box;}
input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
input[type=submit] {
background-color: #000000;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
</style>
</head>
<body>
<h3> c o n t a c t . </h3>
<h4> We're more likely to respond by email</h4>
<p> send us an email : </p>
<div class="container">
<form action="/action_page.php">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your name..">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Your last name..">
</select>
<label for="subject">Subject</label>
<textarea id="subject" name="subject" placeholder="Write something.." style="height:200px"></textarea>
<input type="submit" value="Submit">
</form>
</div>
</body>
</body>
</html>```
解决方案
推荐阅读
- r - 如何在绘图上以相同的顺序关联聚类标签和树状图
- editor - Wagtail Draftail:将类添加到 div
- vue.js - 使用 vee-validate 在 vue js 中进行验证有错误
- javascript - OAuth2 授权代码授予流 Node.js 与客户端混合
- angular - 在 bsDatepicker 中提交表单后更改日期
- r - 如何重复列表可变次数
- wordpress - 使用帖子计数的帖子的可变宽度
- hibernate - Hibernate - 在单个事务中保存两个对象
- android - 以目标账户的货币设置所有应用内商品的默认价格
- keystore - 如何在 keytool 中传递一些非 ASCII 字符