样式
<style>
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
border: 1px solid black;
}
</style>
js
<body>
<h3>学生信息表</h3>
<input type="text" placeholder="请输入学生姓名" class="name">
<br>
<input type="text" placeholder="请输入学生年纪" class="age">
<br>
<div class="sex-box">
<input type="radio" name="sex" value="男" class="sex">男
<input type="radio" name="sex" value="女" class="sex">女
</div>
<br>
<button class="btn">添加</button>
<table>
<thead>