免费名字测试打分宝宝起名打分
```html
body {
fontfamily: Arial, sansserif;
lineheight: 1.6;
margin: 0;
padding: 20px;
}
h1 {
textalign: center;
color: 333;
}
p {
color: 666;
}
.container {
maxwidth: 800px;
margin: auto;
}
.question {
backgroundcolor: f9f9f9;
padding: 20px;
marginbottom: 20px;
borderradius: 5px;
}
.question h2 {
color: 333;
margintop: 0;
}
.question p {
margintop: 10px;
}
.question input[type="radio"] {
marginright: 10px;
}
.result {
backgroundcolor: f3f3f3;
padding: 20px;
borderradius: 5px;
}
.result h2 {
color: 333;
margintop: 0;
}
.result p {
margintop: 10px;
}
在线宝宝起名打分测试
很容易记忆
比较容易记忆
一般般
不太容易记忆
很难记忆
完全符合
比较符合
一般般
不太符合
完全不符合
非常流行
比较流行
一般般
不太流行
很少见
function calculateScore() {
const q1 = parseInt(document.querySelector('input[name="q1"]:checked').value);
const q2 = parseInt(document.querySelector('input[name="q2"]:checked').value);
const q3 = parseInt(document.querySelector('input[name="q3"]:checked').value);
const totalScore = q1 q2 q3;
const resultElement = document.getElementById("result");
const scoreElement = document.getElementById("score");
scoreElement.textContent = totalScore;
resultElement.style.display = "block";
}