freeCodeCamp/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-forms-by-buildin.../60f1a5e2d2c23707a4f9a660.md

929 B

id title challengeType dashedName
60f1a5e2d2c23707a4f9a660 步驟 8 0 step-8

--description--

現在,通過設置 body 的默認 margin0 來重置一些瀏覽器的默認設置,從而去掉水平滾動條。

--hints--

應該在 body 元素選擇器中添加 margin

assert.isNotEmpty(new __helpers.CSSHelp(document).getStyle('body')?.margin);

應該將 margin 屬性設置爲 0

assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.margin, '0px');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <title>Registration Form</title>
      <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
  </body>
</html>
--fcc-editable-region--
body {
  width: 100%;
  height: 100vh;
}
--fcc-editable-region--