Advertisement
asimryu

20151013 코딩2

Oct 12th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.58 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>코딩2</title>
  6. <style>
  7.     body {
  8.         margin:0;
  9.     }
  10.     #wrap {
  11.         margin:0 auto;
  12.         width:940px;
  13.     }
  14.     header {
  15.         border-radius:20px 20px 0 0;
  16.         width:100%;
  17.         height:300px;
  18.         background-color:yellow;
  19.         background-image:url(http://lorempixel.com/940/300);
  20.     }
  21.     nav {
  22.         width:100%;
  23.         height:50px;
  24.         background-color:rgb(0,0,0);
  25.     }
  26.     nav > a {
  27.         font-size:25px;
  28.         color:white;
  29.         text-decoration:none;
  30.         height: 50px;
  31.         line-height:50px;
  32.         padding:0 10px;
  33.         display:inline-block;
  34.     }
  35.     nav > a:hover { background-color:red;}
  36.     section, aside { min-height:400px; float:left; }
  37.     section { width:640px;}
  38.     aside { width:300px; background-color:green;}
  39.     .hello { width:620px; padding:10px; }
  40.     .hello > h1 { font-size: 28px; margin-bottom:0;}
  41.     .hello > p { font-size: 18px; line-height: 150%;}
  42.     .hello > p > img { border-radius:10px; margin: 5px 5px 0 0;}
  43.     .video { clear:both; }
  44.     .video > div { width:320px;height:240px;float:left;}
  45. </style>
  46. </head>
  47. <body>
  48.     <div id="wrap">
  49.         <header id="h"></header>
  50.         <nav>
  51.             <a href="#rest" onmouseover="change('food')">HOME</a>
  52.             <a href="#rest" onmouseover="change('cats')">HTML</a>
  53.             <a href="#rest" onmouseover="change('sports')">STYLE</a>
  54.             <a href="#rest" onmouseover="change('people')">JAVASCRIPT</a>
  55.             <a href="#rest" onmouseover="change('city')">공주대학교</a>
  56.         </nav>
  57.         <section>
  58.             <article class="hello">
  59.                 <h1>환영합니다.</h1>
  60.                 <p><img align="left" src="http://lorempixel.com/100/100/technics">웹을 활용한 코딩 배우기 시간에 오신것을 환영합니다. 이 강의는 국립공주대학교 학생들을 위해 개설되었으며 웹 개발 언어를 통해 컴퓨터 코딩을 이해하고 이를 통해 디지털 세계로의 접근을 보다 깊이 하기 위해 개설되었습니다.</p>
  61.             </article>
  62.             <article class="video">
  63.                 <div><iframe width="320" height="240" src="https://www.youtube.com/embed/av_QX3uSTR0" frameborder="0" allowfullscreen></iframe></div>
  64.                 <div><iframe width="320" height="240" src="https://www.youtube.com/embed/Rxn9_LwZ_6A" frameborder="0" allowfullscreen></iframe></div>
  65.             </article>
  66.         </section>
  67.         <aside>
  68.         </aside>
  69.     </div>
  70.     <script>
  71.         function change(c){
  72.             var src = "http://lorempixel.com/940/300/" + c;
  73.             var hdr = document.getElementById("h");
  74.             hdr.style.backgroundImage = "url(" + src + ")";
  75.         }
  76.     </script>
  77. </body>
  78. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement