填志愿系统

 

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
}
header {
background-color: #4CAF50;
color: white;
text-align: center;
padding: 1rem 0;
}
.container {
max-width: 800px;
margin: 20px auto;
background: #fff;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.form-group {
margin-bottom: 20px;
}
label {
font-size: 1rem;
margin-bottom: 5px;
display: block;
color: #333;
}
select, input {
width: 100%;
padding: 10px;
margin: 5px 0;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}
.btn {
display: inline-block;
padding: 10px 15px;
font-size: 1rem;
color: white;
background-color: #4CAF50;
border: none;
border-radius: 4px;
cursor: pointer;
margin-right: 10px;
}
.btn:hover {
background-color: #45a049;
}
.priority-list {
margin: 20px 0;
}
.priority-list ul {
list-style-type: none;
padding: 0;
}
.priority-list li {
background: #f9f9f9;
padding: 10px;
margin-bottom: 5px;
border: 1px solid #ccc;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
}
.priority-list button {
padding: 5px 10px;
font-size: 0.9rem;
border: none;
background-color: #ddd;
border-radius: 4px;
cursor: pointer;
}
.priority-list button:hover {
background-color: #ccc;
}

 

填志愿系统




计算机科学与技术机械工程电子信息工程工商管理艺术设计

我的志愿顺序:


    const priorityList = document.getElementById('priorityList');

    function addMajor() { const majorSelect = document.getElementById('majorSelect'); const selectedMajor = majorSelect.value;

    const listItem = document.createElement('li'); listItem.innerHTML = `${selectedMajor} `;

    priorityList.appendChild(listItem); }

    function removeMajor(button) { const listItem = button.parentNode; priorityList.removeChild(listItem); }

    document.getElementById('volunteerForm').addEventListener('submit', function (event) { event.preventDefault(); alert('志愿已提交!'); });

    📱 手机扫码阅读
    二维�? style=
    扫码直接打开文章