messageSurvey.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>问卷模板</title>
  5. <meta charset='utf-8'>
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <style>
  8. body{
  9. margin:0;
  10. padding:0;
  11. }
  12. .survey_logo {
  13. position: relative;
  14. top: 15px;
  15. left: 20px;
  16. }
  17. .title{
  18. font-size:20px;
  19. font-weight:600;
  20. text-align: center;
  21. }
  22. .content{
  23. margin:15px;
  24. padding:15px;
  25. border:1px solid #eee;
  26. border-radius:5px;
  27. }
  28. .content-item{
  29. margin-bottom:30px;
  30. }
  31. .content-item span{
  32. font-size:16px;
  33. display:block;
  34. margin-bottom:10px;
  35. font-weight:bold;
  36. }
  37. .content-item input[type=text],.content-item textarea{
  38. width:100%;
  39. box-sizing: border-box;
  40. border:1px solid #ccc;
  41. border-radius:5px;
  42. }
  43. .content-item input[type=text]{
  44. height:40px;
  45. }
  46. .content-item input[type=radio],.content-item input[type=checkbox]{
  47. height:30px;
  48. vertical-align:middle;
  49. margin-right:15px;
  50. }
  51. .content-item label{
  52. vertical-align: middle;
  53. }
  54. .submit{
  55. width:100%;
  56. background:#409EFF;
  57. padding: 10px 20px;
  58. font-size: 14px;
  59. border-radius: 4px;
  60. color:#FFF;
  61. border:0px;
  62. }
  63. </style>
  64. </head>
  65. <body>
  66. <img src="https://test.scxjc.club/img/survey_logo.387bf80d.png" class="survey_logo">
  67. <div class='title'>测试模板</div>
  68. <div class='content'>
  69. <div class='content-item'>
  70. <span>姓名</span>
  71. <input type="text" name='' placeholder='请输入姓名'>
  72. </div>
  73. <div class='content-item'>
  74. <span>姓名</span>
  75. <textarea name="" id="" cols="30" rows="5" placeholder="请输入"></textarea>
  76. </div>
  77. <div class='content-item'>
  78. <span>姓名</span>
  79. <input type="radio" id='r1' name='radio1'><label for="r1">单选项1</label>
  80. </br>
  81. <input type="radio" id='r2' name='radio1'><label for="r2">单选项2</label>
  82. </div>
  83. <div class='content-item'>
  84. <span>姓名</span>
  85. <input type="checkbox" id='c1' name='checkbox1'><label for="c1">多选项1</label>
  86. </br>
  87. <input type="checkbox" id='c2' name='checkbox1'><label for="c2">多选项2</label>
  88. </div>
  89. <div class='content-item'>
  90. <span>图片上传</span>
  91. <form id="form" method="POST" enctype="multipart/form-data"
  92. onsubmit="return check();">
  93. <input type="file" accept="image/*" name="file" id="file" placeholder='选择图片'/>
  94. </form>
  95. </div>
  96. <div class='content-item'>
  97. <span>文件上传</span>
  98. <form id="form" method="POST" enctype="multipart/form-data"
  99. onsubmit="return check();">
  100. <input type="file" accept="image/*" name="file" id="file" placeholder='选择图片'/>
  101. </form>
  102. </div>
  103. <div class="content-item">
  104. <button type="submit" class="submit">提交</button>
  105. </div>
  106. </div>
  107. </body>
  108. <script>
  109. // console.log(document.get)
  110. function check(){
  111. console.log(11111)
  112. }
  113. </script>
  114. </html>