반응형
<!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>
반응형