"CSS"의 두 판 사이의 차이

18번째 줄: 18번째 줄:


==CSS 파일로 분리==
==CSS 파일로 분리==
* HTML
<source lang='html5'>
<source lang='html5'>
<link rel="stylesheet" href="/css/common.css" />
<link rel="stylesheet" href="/css/common.css" />
</source>
* CSS
<source lang='css'>
p {font-size:50px; color:#ace; font-weight:bold}
</source>
</source>



2012년 4월 21일 (토) 16:14 판

Crystal Clear action info.png 작성 중인 문서입니다.


1 HTML에 포함

<!DOCTYPE html>
<meta charset="utf-8" />
<head>
<title>CSS 예제 1</title>
<style>
p {font-size:50px; color:#ace; font-weight:bold}
</style>
</head>
<body>
<p>내용</p>
</body>

2 CSS 파일로 분리

  • HTML
<link rel="stylesheet" href="/css/common.css" />
  • CSS
p {font-size:50px; color:#ace; font-weight:bold}

3 버전 표시

<link rel="stylesheet" href="/css/common.css?버전" />
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}