调查问卷生成json字符串

本文介绍了如何通过按钮实现调查问卷的生成,该功能能够输出包含文本框、单选及段落描述等题型的JSON字符串,适用于创建自定义问卷。
摘要由CSDN通过智能技术生成

大家可能见到一些问卷调查网站,可以拖拽生成自己想要的调查问卷。本人自己完成一个基于按钮的生成调查问卷的功能(可以得到问卷中题目组成的json字符串),现在只有文本框、单选、段落描述三种类型。附下功大家参考:

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8">
    <script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
    <style type="text/css">
  .menu {
    float: left;
    width: 100px;
    height: 200px;
    margin-top: 200px;
    margin-left: 100px;
    /*background-color: #45B7FF;*/
    text-align: center;
    border: 1px solid #45B7FF;
  }
  .menu .menu_bar {
    background-color: #45B7FF;
    font-size: larger;
    color: white;
    height: 30px;
    line-height: 30px;
  }
  .menu table {
    margin-top: 10px;
    margin-left: 30px;
    text-align: center;
  }
  .menu table td {
    height: 30px;
    line-height: 30px;
  }
  .menu table td a{
    text-decoration: none;
    color: black;
  }
  .menu table td a:hover{
    background-color: #CCCCCC;
    color: white;
  }


  .container {
    float: left;
    width: 900px;
  }

  .head {
    text-align: center;
  }
  .head button {
    background-color: #45B7FF;
    border-radius: 5px;
    width: 100px;
    height: 25px;
    border-color: #45B7FF;
    color: white;
    margin-left: 100px;
  }
  .head div {
    font-size: smaller;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #CCCCCC;
  }
  .head input[type=text] {
    width: 
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值