简单大方的404页面

404.jsp

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!--解决 IE6 背景缓存-->
<!--[if IE 6]><script type="text/javascript">document.execCommand("BackgroundImageCache", false, true);</script><![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>欢迎您的光临!</title>
<style type="text/css">
html{background:url(/static/images/paper.jpg)!important;}
a,fieldset,img{border:0;}
a{color:#221919;text-decoration:none;outline:none;}
a:hover{color:#3366cc;text-decoration:underline;}
body{font-size:24px;color:#B7AEB4;}
body a.link,body h1,body p{-webkit-transition:opacity 0.5s ease-in-out;-moz-transition:opacity 0.5s ease-in-out;transition:opacity 0.5s ease-in-out;}
#wrapper{text-align:center;margin:100px auto;width:594px;}
a.link{text-shadow:0px 1px 2px white;font-weight:600;color:#3366cc;opacity:0;}
h1{text-shadow:0px 1px 2px white;font-size:24px;opacity:0;}
img{-webkit-transition:opacity 1s ease-in-out;-moz-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out;height:202px;width:199px;opacity:0;}
p{text-shadow:0px 1px 2px white;font-weight:normal;font-weight:200;opacity:0;}
.fade{opacity:1;}
@media only screen and (min-device-width:320px) and (max-device-width:480px){
	#wrapper{margin:40px auto;text-align:center;width:280px;}
}
</style>
</head>
<body>
<div id="wrapper">
    <a href="http://www.17sucai.com/"><img class="fade" src="images/admin/404_icon.png"></a>
        <div>
            <h1 class="fade">温馨提示:您访问的地址不存在!</h1>
            <p class="fade">你正在寻找的页面无法找到。
            <a style="opacity: 1;" class="link" href="/czcqw" οnclick="history.go(-1)">返回?</a></p>
            
        </div>
    </div>
</body>
</html>

404图片:

css背景  paper.jpg:


效果图:


好的,生成一个美观大方的登录页面,可以使用以下 HTML 代码: ```html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Login Page</title> <style> body { background-color: #eee; font-family: Arial, sans-serif; } .container { width: 400px; margin: 0 auto; background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); } h1 { text-align: center; margin-top: 0; } label { display: block; margin-bottom: 5px; } input[type="text"], input[type="password"] { width: 100%; padding: 10px; border-radius: 3px; border: none; margin-bottom: 20px; box-sizing: border-box; } input[type="submit"] { background-color: #4CAF50; color: #fff; border: none; padding: 10px 20px; border-radius: 3px; cursor: pointer; font-size: 16px; margin-top: 10px; } input[type="submit"]:hover { background-color: #3e8e41; } .error-message { color: red; margin-top: 10px; } </style> </head> <body> <div class="container"> <h1>Login</h1> <form action="" method="post"> <label for="username">Username</label> <input type="text" id="username" name="username" required> <label for="password">Password</label> <input type="password" id="password" name="password" required> <input type="submit" value="Login"> </form> <div class="error-message"></div> </div> </body> </html> ``` 这段代码生成一个包含登录表单的页面,具有以下特点: - 页面背景为淡灰色,整体风格简洁明了; - 表单使用白色背景,具有圆角和阴影效果,看起来更加美观; - 表单包含用户名和密码两个输入框,以及一个登录按钮; - 表单使用 HTML5 required 属性,可以在用户未输入内容时阻止表单提交; - 如有错误信息,错误信息会显示在页面上,以提示用户。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

智能体格

你的鼓将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值