jquery实现一个分步骤表单提交效果代码

代码语言:html

所属分类:表单美化

代码描述:jquery实现一个分步骤表单提交效果代码

代码标签: 步骤 表单 提交 效果

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

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<style>
    *, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;

  font-size: 16px;
}

body {
  padding: 25px;
  z-index: -1;
  font-family: "microsoft yahei";
}
body::before {
  display: block;
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  opacity: 1;
  z-index: 0;
  background: #31dddb;
  box-shadow: 0 9px 0 rgba(255, 255, 255, 0.1);
}

.container {
  display: block;
  position: relative;
  margin: 50px auto;
  width: 100%;
  max-width: 400px;
  min-width: 300px;
}

h3 {
  color: #fff;
  font-size: 2em;
  font-weight: bold;
  font-family: "microsoft yahei";
  text-shadow: 0 0 10px #000;
  text-align: center;
}

p {
  color: #555;
  clear: both;
}

form {
  float: left;
  display: block;
  width: 100%;
  position: relative;
}
form fieldset {
  float: left;
  position: absolute;
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  background: #fff;
  background: whitesmoke;
  background: -webkit-linear-gradient(0deg, #eeeeee 0%, whitesmoke 100%);
  background: -moz-linear-gradient(0deg, #eeeeee 0%, whitesmoke 100%);
  background: -o-linear-gradient(0deg, #eeeeee 0%, whitesmoke 100%);
  background: linear-gradient(0deg, #eeeeee 0%, whitesmoke 100%);
  /* W3C */
}
form fieldset legend {
  float: left;
  display: block;
  width: 100%;
  position: relative;
  border-bottom: 1px solid #dfdfdf;
  top: 0;
  left: 0;
  clear: both;
  margin-bottom: 20px;
  padding-bottom: 10px;
  line-height: 30px;
  color: #444;
  text-shadow: 0 1px 0 #fff;
}
form fieldset.beta, form fieldset.charlie {
  display: none;
}
form fieldset .frow {
  float: left;
  display: block;
  width: 100%;
  margin.........完整代码请登录后点击上方下载按钮下载查看

网友评论0