html在线调查,HTML5 调查问卷表单

CSS

语言:

CSSSCSS

确定

@import url(http://fonts.googleapis.com/css?family=Lato:400,700,900);

body {

font-family: Lato, Helvetica, Arial, sans-serif;

background: linear-gradient(#dfdbd7, #d7d3d3);

color: #545454;

margin: 0;

min-height: 100vh;

}

.form {

max-width: 520px;

background: #fff;

margin: 1em auto;

padding-bottom: 1em;

border-radius: 8px;

box-shadow: 0 2px 3px rgba(0, 0, 0, 0.07);

}

.form header {

border-bottom: 3px double #e9e9e9;

padding: 1em 0;

padding-bottom: 1em;

}

.form header h1 {

text-align: center;

font-size: 1.3em;

color: #5f7796;

font-weight: bolder;

}

.form header h2 {

text-align: center;

font-size: 1em;

color: #94a9c3;

font-weight: normal;

}

.form .button-submit {

font-weight: regular;

color: #fff;

font-size: 1em;

padding: 0.8em 2em;

border-radius: 50em;

border: none;

background: #5f7796;

margin: 1em auto 0.3em;

display: block;

transition: all 0.2s linear;

}

.form .button-submit:hover {

background: #374558;

}

.form ul {

list-style: none;

margin: 0;

padding: 0;

}

.form ul h3 {

font-weight: normal;

font-size: 1.2em;

}

.form ul .question {

padding: 0 1em 1.5em;

border-bottom: 1px solid #e9e9e9;

}

.form ul .question .choice span {

background: #70b48b;

color: #fff;

font-size: 0.8em;

padding: 0.5em 1.5em 0.5em 2em;

margin: 0 1.2em 0 0;

border-radius: 100px;

position: relative;

min-width: 50px;

text-align: center;

display: inline-block;

transition: all 0.2s linear;

box-shadow: 0 0 0 2px rgba(0, 0, 0, 0) inset, 0 0 0 2px rgba(0, 0, 0, 0);

}

.form ul .question .choice span:before {

content: '';

background: #fff;

position: absolute;

top: 9px;

left: 7px;

border-radius: 50%;

width: 10px;

height: 10px;

}

.form ul .question .choice span:after {

content: '';

position: absolute;

z-index: 2;

width: 6px;

height: 6px;

top: 11px;

left: 9px;

transform: scale(0);

border-radius: 50%;

transition: all 0.3s linear;

}

.form ul .question .choice span:hover,

.form ul .question .choice span:focus {

background: #417d59;

}

.form ul .question .choice input {

display: none;

}

.form ul .question .choice input:checked + span {

box-shadow: 0 0 0 2px #5f7796 inset, 0 0 0 2px rgba(0, 0, 0, 0.1);

}

.form ul .question .choice input:checked + span:after {

background: #5f7796;

transform: scale(1);

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值