Build a Job Application Form - 构建一个职位申请表单

告诉我们发生了什么:

我的12项要求不过. 使用:focus移除input和textarea聚焦的默认轮廓。我写了input:focus,
textarea:focus{
outline: none;
border: 2px solid blue;
}是那出问题了吗

到目前为止你的代码

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Job Application Form</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<form>
<label for="name">Full Name: </label>
<input type="text" name="name" id="name" required>

<label for="email">Email: </label>
<input type="email" name="email" id="email" required>

<label class="position">Position</label>
<select id="position" required>
  <option value="">Select Position</option>
  <option>Full-Time</option>
  <option>Part-Time</option>
</select>

<fieldset class="radio-group">
  <legend>Availability</legend>

    <input type="radio" id="fulltime" name="availability" required>
   <label for="fulltime">Full Time</label>

  <input type="radio" id="parttime" name="availability" required>
  <label for="parttime">Part Time</label>
</fieldset>

  <label for="message">Message</label>
  <textarea id="message"></textarea>

  <button type="submit">
    Submit
  </button>

</form>
</div>
</body>
</html>
/* file: styles.css */
.container{
width: 400px;
margin: 20px auto;
}

label{
  display: block;
  margin-top: 10px;
}

input,
select,
textarea{
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

input:focus,
textarea:focus {
border: blue;
outline: none;
}

input:invalid,
select:invalid,
textarea:invalid{
  border: red;
}

input:valid,
select:valid,
textarea:valid{
  border: green;
}

button:hover{
  background-color: lightblue;
}

.radio-group input[type="radio"]:checked{
  border:2px solid blue;
  background-color: lightblue;
  box-shadow: 0 0 5px gray;
}

.radio-group input[type="radio"]:checked+label{
  color: blue;
}

input:first-of-type{
  border-radius: 10px;
}

你的浏览器信息:

用户代理是: Mozilla/5.0 (iPhone; CPU iPhone OS 26_5_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/148.0.7778.166 Mobile/15E148 Safari/604.1

挑战信息:

Build a Job Application Form - 构建一个职位申请表单

GitHub Link: i18n-curriculum/curriculum/challenges/chinese/blocks/lab-job-application-form/66faac4139dbbd5dd632c860.md at main · freeCodeCamp/i18n-curriculum · GitHub

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.