登陆界面(二)

原理: 登陆界面为login.html, 提交表单跳转到login.php页面, 通过验证后跳转到index.php, 退出时跳转到logout.php. 同php简单登陆, login.html略有不同.

1.CSS部分.

body {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    background-color:yellow;
}

.sign-in-up-section {
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 420px;
}

.sign-in-up-content {
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 2px;
    color: #1b1f23;
}

.text-center {
    text-align: center;
}

h4, .h4 {
    font-size: 22px;
}

.sign-in-up-form {
    padding-top: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    height: 45px;
    padding: 6px 12px;
    font-size: 18px;
    line-height: 1.42857;
    color: #696f6f;
    background-color: white;
    background-image: none;
    border: 2px solid #cccccc;
    border-radius: 4px;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 0;
    white-space: nowrap;
    padding: 10px 23px;
    font-size: 18px;
    line-height: 1.42857;
    border-radius: 4px;
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-block {
    display: block;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.btn-success {
    color: white;
    background-color: #00b6ad;
    border-color: #009d95;
}

.col-md-10 {
    height: 24%;
};

2.login.html部分


  
    登陆界面
    
  
  
    
  

你可能感兴趣的:(登陆界面(二))