当前位置:首页 > 网站源码

创意波浪分割线404错误页面模板:卡通风格的人物提示404页面代码

卡卷网2年前 (2024-09-12)网站源码703

创意波浪分割线404错误页面模板:卡通风格的人物提示404页面代码  第1张

创意的分割线404错误页面模板,卡通创意的波浪分割线404错误提示页面,人物提示404页面代码。

代码如下,自行复制



<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen - Sassy 404 UI Study</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div>
  <aside><img src="images/Mirror.png" alt="404 Image">
  </aside>
  <main>
    <h1>Sorry!</h1>
    <p>
     要么你不够酷,无法访问此网页,要么它不存在<em>. . . 你的社交生活.</em>
    </p>
    <a href="http://www.bokequ.com/"><button>返回主页!</button></a>
  </main>
</div>
</body>
</html>

css代码如下:


@import url("https://fonts.googleapis.com/css2?family=Fontdiner+Swanky&family=Roboto:wght@500&display=swap");
* {
  box-sizing: 0;
  margin: 0;
  padding: 0;
  cursor: url("../images/cursors-edge.png"), auto;
}
body {
  background: -webkit-gradient(linear, left top, right top, color-stop(50%, white), color-stop(50%, #383838));
  background: linear-gradient(to right, white 50%, #383838 50%);
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: white;
}
div {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  height: 100vh;
  max-width: 1000px;
  width: calc(100% - 4rem);
  margin: 0 auto;
}
div > * {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-flow: column;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
  height: 100vh;
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
}
aside {
  background-image: url("../images/right-edges.png");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 25px 100%;
}
aside img {
  display: block;
  height: auto;
  width: 100%;
}
main {
  text-align: center;
}
main h1 {
  font-family: "Fontdiner Swanky", cursive;
  font-size: 4rem;
  color: #c5dc50;
  margin-bottom: 1rem;
}
main p {
  margin-bottom: 2.5rem;
}
main p em {
  font-style: italic;
  color: #c5dc50;
}
main button {
  font-family: "Fontdiner Swanky", cursive;
  font-size: 1rem;
  color: #383838;
  border: none;
  background-color: #f36a6f;
  padding: 1rem 2.5rem;
  -webkit-transform: skew(-5deg);
          transform: skew(-5deg);
  -webkit-transition: all 0.1s ease;
  transition: all 0.1s ease;
  cursor: url("../images/cursors-eye.png"), auto;
}
main button:hover {
  background-color: #c5dc50;
  -webkit-transform: scale(1.15);
          transform: scale(1.15);
}
@media (max-width: 700px) {
  body {
    background: #383838;
    font-size: 16px;
  }
  div {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-flow: column;
  }
  div > * {
    max-width: 700px;
    height: 100%;
  }
  aside {
    background-image: none;
    background-color: white;
  }
  aside img {
    max-width: 300px;
  }
}

调用的图片如下

创意波浪分割线404错误页面模板:卡通风格的人物提示404页面代码  第2张

喜欢的复制代码去做成自己想要的404错误页代码吧

扫描二维码推送至手机访问。

版权声明:本文由卡卷网发布,如需转载请注明出处。

本文链接:https://www.kajuan.net/softcode/2024/09/211.html

分享给朋友:

相关文章

分享收藏多年老牌CMS源码:PHPCMS官方版 9.4.2 UTF-8

分享收藏多年老牌CMS源码:PHPCMS官方版 9.4.2 UTF-8

PHPCMS V9(简称V9)采用PHP5+MYSQL做为技术基础进行开发。V9采用OOP(面向对象)方式进行基础运行框架搭建。模块化开发方式做为功能开发形式。框架易于功能扩展,代码维护,优秀的二次开发能力,可满足所有网站的应用需求。今天分…

dedecms模板全网首发EMLOGmeta无会员系统模版,只有模板不包含程序

dedecms模板全网首发EMLOGmeta无会员系统模版,只有模板不包含程序

dedecms模板全网首发EMLOGmeta无会员系统模版,只有模板不包含程序下面是首页截图…

2024亲测可用xiuno仿资源社网站源码,带模板和所有插件包含使用教程

2024亲测可用xiuno仿资源社网站源码,带模板和所有插件包含使用教程

2024xiuno仿资源社网站源码,论坛程序源码,资源下载网程序源码!PHP版本:5.0到7.3之间,推荐7.1,高和低都会出错!!!伪静态:location ~* \.(htm)$ {  &nbs…

2024最新版网站分类目录源码网址免费提交收录导航程序模板免费下载

2024最新版网站分类目录源码网址免费提交收录导航程序模板免费下载

2024最新版网站分类目录源码网址免费提交收录导航程序模板免费下载,35Dir核心程序,亲测php5.6-mysql可以正常使用。如下图所示:简介:注意:切记源码中config.php等之类的有关网站配置的文件不要直接用记事本直接打开修改,…

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。