bootstrap+parallax实现视觉差异的森林背景404页面代码

代码语言:html

所属分类:视觉差异

代码描述:bootstrap+parallax实现视觉差异的森林背景404页面代码

代码标签: bootstrap 404 视觉差异

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">

    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css">
    <style>
        html{
          min-height: 100%;
          height: 100%;
        }
        body {
          margin: 0px;
          background: url(//repo.bfw.wiki/bfwrepo/images/forest/bg.png) center/cover #232323;
          font-weight: normal;
          font-family: Source Sans Pro, Helvetica Neue, Helvetica, Arial, sans-serif;
          font-size:16px;
          color: #A68793;
          overflow-x: hidden;
          min-height: 100%;
          height: 100%;
        }
        body::before {
          content: ' ';
          background: url(//repo.bfw.wiki/bfwrepo/images/forest/forest.png) center/cover;
          height: 100%;
          width: 100%;
          position: absolute;
          z-index: 2
        }
        body::after {
          content: ' ';
          background: rgba(0, 0, 0, .2);
          height: 100%;
          width: 100%;
          position: absolute;
          z-index: 0;
          top: 0;
          left: 0;
        }
        a {
          text-decoration: none; 
          color: #fff;
        }
        h3 {
          -webkit-transform: rotate(-45deg) translateY(-30px);
                  transform: rotate(-45deg) translateY(-30px); 
          color: white; 
          width: 100px;
          font-family: 'Source Sans Pro', sans-serif;
        }
        
        /**********************************/
        /********** 3.0 Header  ***********/
        /**********************************/
        header {
          padding: 15px 0 0;
          background: -webkit-linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.2),transparent);
          background: linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.2),transparent);
        }
        header img {
          display:block;
          max-height: 40px;
          max-width: 40px;
          margin: 15px 0;
        }
        header .nav > li > a {
          font-weight: 900;
        }
        header .nav > li > a:focus,
        header .nav > li > a:hover {
          background: transparent;
          text-decoration: underline;
          color: #fff
        }
        header .navbar-brand {
          font-size: 18px;
          font-family: 'Baloo Chettan', cursive;
          text-shadow: 2px 2px rgba(0, 0, 0, .4);
        }
        header .navbar-brand:hover {
          color: #eee;
        }
        header .navbar-brand span {
          color: #9dab6e;
        }
        header .navbar-toggle {
          background: rgba(0, 0, 0, .1);
        }
        header .navbar-toggle .icon-bar {
          background: #9dab6e;
        }
        
        /**********************************/
        /****** 4.0 Content Styles  *******/
        /**********************************/
        .main {
          margin-top: 25px;
          margin-bottom: 25px;
          text-align: center;
          position: relative;
        }
        .main .scene {
          z-index: 1;
          padding: 0;
          margin: 0;
        }
        .main .relative {
          position: relative;
          z-index: 13
        }
        .main h2 {
          color: #fff;
          font-size: 32px;
          margin-bottom: 40px;
        }
        .main .error {
          color: #fff;
          font.........完整代码请登录后点击上方下载按钮下载查看

网友评论0