Skip to content

css 가 작동하지 않습니다. #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chung0906 opened this issue Jan 12, 2018 · 1 comment
Closed

css 가 작동하지 않습니다. #123

chung0906 opened this issue Jan 12, 2018 · 1 comment

Comments

@chung0906
Copy link

chung0906 commented Jan 12, 2018

증상

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">

    <style>

      header:{
        border-bottom:1px solid black;
      }

    </style>

  </head>
  <body>

   <header>
     <h1><a href="http://125.140.217.115/html/index.html">JavaScript</a></h1>
   </header>

<nav>
     <ol>
       <li><a href="http://125.140.217.115/html/1.html">JavaScript란?</a></li>
       <li><a href="http://125.140.217.115/html/2.html">변수와 상수</a></li>
       <li><a href="http://125.140.217.115/html/3.html">연산자</a></li>
    </ol>
</nav>

  <article>
    <h2>변수와 상수</h2>
     변수란
         <ul>
           <li>변하는 값</li>
           <li>x=10일 때 왼쪽항인 x는 오른쪽 항인 10에 따라 다른 값이 지정된다.</li>
         </ul>
     상수란
          <ul>
            <li>변하지 않는 값</li>
            <li>x=10일 때 오른쪽 항인 10이 상수가 된다</li>
          </ul>
  </article>

  </body>
</html>

위 코드에서 style 코드가 작동하지 않습니다.

환경

윈도우10 크롬입니다.

@leezche
Copy link
Collaborator

leezche commented Jan 12, 2018

header:{
border-bottom:1px solid black;
}
-->
header {
border-bottom:1px solid black;
}

이렇게 해주시면 될것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants