HTML5 개발 시리즈(4)의 스타일시트 세 가지 유형

1098 단어 Html5
1. 내부 스타일시트


	
		
		
		<!--         :  html5        type="text/css"        -->
		<style type="text/css">
			div{
				color: red;
			}
		</style>
	
	
	
		<div>     </div>
		
		
	
</code></pre> 
  <p>2.     </p> 
  <pre><code>	

		
		<!--        -->
		<div style="color: red;">     </div>
	</code></pre> 
  <p>3.     </p> 
  <p>3.1    .css  ,             </p> 
  <pre><code>h1{
	color: royalblue;
	font-size: 50px;
	background: red;
}</code></pre> 
  <p>3.2  link   html css      </p> 
  <pre><code>

	
		<meta charset="UTF-8"/>
		<title/>
		<link rel="stylesheet" href="css/style.css" sype="text/css"/>
	
	
		<h1>     </h1>
	

</code></pre> 
  <p> </p> 
 </div> 
</div>
                            </div>
                        </div>

좋은 웹페이지 즐겨찾기