반응형
<!doctype html>
<html lang="ko">
 <head>
  <meta charset="UTF-8">
  <title>웹 폰트 사용하기</title>
<link href="https://fonts.googleapis.com/css?family=Nanum+Myeongjo&display=swap" rel="stylesheet">
 <style>
 
   @font-face{
   				font-family: 'Nanum Myeongjo', serif;
			 }
  .w-font{
  			font-family:'Nanum Myeongjo', serif;/*웹 폰트 지정*/
		 }
		 
		p{
			font-size: 30px; /*글자 크기*/
		 }

  	div{
		width:500px;
		height:300px;
		border-radius:10px;
	   }
	.grad{
			background: #ff00cc; /*css3 미지원 브라우저*/
			background: -webkit-linear-gradient(left top,#ff00cc,white);/*초기 모던 브라우저*/
			background: -moz-linear-gradient(right bottom, #ff00cc, white);/*초기 모던 브라우저*/
			background: -o-linear-gradient(right bottom, #ff00cc, white);/*초기 모던 브라우저*/
			background: linear-gradient(to right bottom, #ff00cc, white);/*최신 모던 브라우저*/
		 }
 </style>
 </head>
 <body>
  <div class="grad">
  <p>디폴트 폰트</p>
  <p class="w-font">적용 폰트</p>
 </body>
</html>
반응형

'2019~2020 > 웹 프로그래밍 (PHP)' 카테고리의 다른 글

BOX  (0) 2019.08.25
박스 모델  (0) 2019.08.25
웹 폰트 사용하기  (0) 2019.08.25
Transform  (0) 2019.08.25
내부 스타일시트  (0) 2019.08.25

+ Recent posts