messageSurvey.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. .title{
  13. font-size:20px;
  14. font-weight:600;
  15. text-align: center;
  16. }
  17. .content{
  18. margin:15px;
  19. padding:15px;
  20. border:1px solid #eee;
  21. border-radius:5px;
  22. }
  23. .content-item{
  24. margin-bottom:20px;
  25. }
  26. .content-item span{
  27. display:block;
  28. margin-bottom:10px;
  29. }
  30. .content-item input[type=text],.content-item textarea{
  31. width:100%;
  32. box-sizing: border-box;
  33. border:1px solid #ccc;
  34. border-radius:5px;
  35. }
  36. .content-item input[type=text]{
  37. height:40px;
  38. }
  39. .content-item input[type=radio],.content-item input[type=checkbox]{
  40. height:30px;
  41. vertical-align:middle;
  42. margin-right:15px;
  43. }
  44. .content-item label{
  45. vertical-align: middle;
  46. }
  47. </style>
  48. </head>
  49. <body>
  50. <img src="" alt="" width='200px' height='36px' style='background-color: #eee;'>
  51. <div class='title'>测试模板</div>
  52. <div class='content'>
  53. <div class='content-item'>
  54. <span>姓名</span>
  55. <input type="text" name='' placeholder='请输入姓名'>
  56. </div>
  57. <div class='content-item'>
  58. <span>姓名</span>
  59. <textarea name="" id="" cols="30" rows="5" placeholder="请输入"></textarea>
  60. </div>
  61. <div class='content-item'>
  62. <span>姓名</span>
  63. <input type="radio" id='r1' name='radio1'><label for="r1">单选项1</label>
  64. </br>
  65. <input type="radio" id='r2' name='radio1'><label for="r2">单选项2</label>
  66. </div>
  67. <div class='content-item'>
  68. <span>姓名</span>
  69. <input type="checkbox" id='c1' name='checkbox1'><label for="c1">多选项1</label>
  70. </br>
  71. <input type="checkbox" id='c2' name='checkbox1'><label for="c2">多选项2</label>
  72. </div>
  73. <div class='content-item'>
  74. <span>图片上传</span>
  75. <form id="form" method="POST" enctype="multipart/form-data"
  76. onsubmit="return check();">
  77. <input type="file" accept="image/*" name="file" id="file" placeholder='选择图片'/>
  78. <input type="submit" value="提交"/>
  79. </form>
  80. </div>
  81. <div class='content-item'>
  82. <span>文件上传</span>
  83. <form id="form" method="POST" enctype="multipart/form-data"
  84. onsubmit="return check();">
  85. <input type="file" accept="image/*" name="file" id="file" placeholder='选择图片'/>
  86. <input type="submit" value="提交"/>
  87. </form>
  88. </div>
  89. </div>
  90. </body>
  91. <script>
  92. // console.log(document.get)
  93. function check(){
  94. console.log(11111)
  95. }
  96. </script>
  97. </html>