2019. 2. 13. 00:32ㆍFront End 강의내용
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
p{
padding: 20px;
background: tomato;
color: #fff;
}
p::first-letter{
font-size: 4em;
}
p::first-line{
color: blue;
}
/* 첫번째 줄만 적용, 스크린 크기 바꿔도 첫번째 줄만 적용*/
::selection{
background-color: #fff;
color: tomato;
}
/* 글 드래그하면 적용*/
</style>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Omnis quidem rerum quaerat. Asperiores explicabo, accusantium obcaecati velit ipsum unde, repudiandae, corporis dignissimos ipsam sequi voluptatem esse placeat, provident id atque!</p>
</body>
</html>
'Front End 강의내용' 카테고리의 다른 글
126강. Dropcap 적용 (0) | 2019.02.13 |
---|---|
125강. ::before, ::after 적용 (0) | 2019.02.13 |
122강. only-of-type 적용 (0) | 2019.02.12 |
121강. nth-child 적용 (0) | 2019.02.12 |
116강. opacity 적용 (0) | 2019.02.12 |