html表单互动,互动Form表单

css

html, body{

width: 100%;

height: 100%;

margin: 0;

padding: 0;

font-family: 'Open Sans', sans-serif;

background-color: #3498db;

}

h1, h2, h3, h4, h5 ,h6{

font-weight: 200;

}

a{

text-decoration: none;

}

p, li, a{

font-size: 14px;

}

fieldset{

margin: 0;

padding: 0;

border: none;

}

/* GRID */

.twelve { width: 100%; }

.eleven { width: 91.53%; }

.ten { width: 83.06%; }

.nine { width: 74.6%; }

.eight { width: 66.13%; }

.seven { width: 57.66%; }

.six { width: 49.2%; }

.five { width: 40.73%; }

.four { width: 32.26%; }

.three { width: 23.8%; }

.two { width: 15.33%; }

.one { width: 6.866%; }

/* COLUMNS */

.col {

display: block;

float:left;

margin: 0 0 0 1.6%;

}

.col:first-of-type {

margin-left: 0;

}

.container{

width: 100%;

max-width: 700px;

margin: 0 auto;

position: relative;

}

.row{

padding: 20px 0;

}

/* CLEARFIX */

.cf:before,

.cf:after {

content: " ";

display: table;

}

.cf:after {

clear: both;

}

.cf {

*zoom: 1;

}

.wrapper{

width: 100%;

margin: 30px 0;

}

/* STEPS */

.steps{

list-style-type: none;

margin: 0;

padding: 0;

background-color: #fff;

text-align: center;

}

.steps li{

display: inline-block;

margin: 20px;

color: #ccc;

padding-bottom: 5px;

}

.steps li.is-active{

border-bottom: 1px solid #3498db;

color: #3498db;

}

/* FORM */

.form-wrapper .section{

padding: 0px 20px 30px 20px;

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

background-color: #fff;

opacity: 0;

-webkit-transform: scale(1, 0);

-ms-transform: scale(1, 0);

-o-transform: scale(1, 0);

transform: scale(1, 0);

-webkit-transform-origin: top center;

-moz-transform-origin: top center;

-ms-transform-origin: top center;

-o-transform-origin: top center;

transform-origin: top center;

-webkit-transition: all 0.5s ease-in-out;

-o-transition: all 0.5s ease-in-out;

transition: all 0.5s ease-in-out;

text-align: center;

position: absolute;

width: 100%;

min-height: 300px

}

.form-wrapper .section h3{

margin-bottom: 30px;

}

.form-wrapper .section.is-active{

opacity: 1;

-webkit-transform: scale(1, 1);

-ms-transform: scale(1, 1);

-o-transform: scale(1, 1);

transform: scale(1, 1);

}

.form-wrapper .button, .form-wrapper .submit{

background-color: #3498db;

display: inline-block;

padding: 8px 30px;

color: #fff;

cursor: pointer;

font-size: 14px !important;

font-family: 'Open Sans', sans-serif !important;

position: absolute;

right: 20px;

bottom: 20px;

}

.form-wrapper .submit{

border: none;

outline: none;

-webkit-box-sizing: content-box;

-moz-box-sizing: content-box;

box-sizing: content-box;

-webkit-appearance: none;

-moz-appearance: none;

appearance: none;

}

.form-wrapper input[type="text"]{

display: block;

padding: 10px;

margin: 10px auto;

background-color: #f1f1f1;

border: none;

width: 50%;

outline: none;

font-size: 14px !important;

font-family: 'Open Sans', sans-serif !important;

}

.form-wrapper input[type="radio"]{

display: none;

}

.form-wrapper input[type="radio"] + label{

display: block;

border: 1px solid #ccc;

width: 100%;

max-width: 100%;

padding: 10px;

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

cursor: pointer;

position: relative;

}

.form-wrapper input[type="radio"] + label:before{

content: "?";

position: absolute;

right: -10px;

top: -10px;

width: 30px;

height: 30px;

line-height: 30px;

border-radius: 100%;

background-color: #3498db;

color: #fff;

display: none;

}

.form-wrapper input[type="radio"]:checked + label:before{

display: block;

}

.form-wrapper input[type="radio"] + label h4{

margin: 15px;

color: #ccc;

}

.form-wrapper input[type="radio"]:checked + label{

border: 1px solid #3498db;

}

.form-wrapper input[type="radio"]:checked + label h4{

color: #3498db;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值