body {
fontfamily: Arial, sansserif;
margin: 0;
padding: 20px;
}
h1 {
textalign: center;
marginbottom: 30px;
}
form {
width: 80%;
maxwidth: 800px;
margin: 0 auto;
border: 1px solid ccc;
padding: 20px;
}
label {
display: block;
marginbottom: 5px;
}
input[type="text"], textarea {
width: 100%;
padding: 10px;
marginbottom: 15px;
border: 1px solid ccc;
borderradius: 3px;
}
button {
backgroundcolor: 007BFF;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
borderradius: 3px;
margintop: 20px;
}
.results {
margintop: 50px;
textalign: center;
}
区块链项目调查问卷
// 假设这里添加一个提交按钮的点击事件,用于向服务器发送数据
document.getElementById("surveyform").addEventListener("submit", function(event) {
event.preventDefault(); // 阻止表单默认提交
// 将表单数据发送到服务器处理
// ...
document.getElementById("resultsection").style.display = "block";
});