둥근 테두리
둥근 테두리
도움말 : 페이지 매김의 첫 번째 링크와 마지막 링크에 둥근 테두리를 추가하십시오.

예
.pagination a:first-child {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.pagination a:last-child {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
[전체소스]
<!DOCTYPE html>
<html>
<head>
<style>
.pagination {
display: inline-block;
}
.pagination a {
color: black;
float: left;
padding: 8px 16px;
text-decoration: none;
border: 1px solid #ddd;
}
.pagination a.active {
background-color: #4CAF50;
color: white;
border: 1px solid #4CAF50;
}
.pagination a:hover:not(.active) {background-color: #ddd;}
.pagination a:first-child {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.pagination a:last-child {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
</style>
</head>
<body>
<h2>Pagination with Rounded Borders</h2>
<div class="pagination">
<a href="#">«</a>
<a href="#">1</a>
<a class="active" href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>
<a href="#">6</a>
<a href="#">»</a>
</div>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 887 | HTML | 8년 전 | 2239 | ||
| 886 | HTML | 8년 전 | 1784 | ||
| 885 | HTML | 8년 전 | 2206 | ||
| 884 | HTML | 8년 전 | 2262 | ||
| 883 | HTML | 8년 전 | 2424 | ||
| 882 | HTML | 8년 전 | 2173 | ||
| 881 | HTML | 8년 전 | 2301 | ||
| 880 | HTML | 8년 전 | 2627 | ||
| 879 | HTML | 8년 전 | 1722 | ||
| 878 | HTML | 8년 전 | 1950 | ||
| 877 | HTML | 8년 전 | 1961 | ||
| 876 | HTML | 8년 전 | 2151 | ||
| 875 | HTML | 8년 전 | 1689 | ||
| 874 | HTML | 8년 전 | 2718 | ||
| 873 | HTML | 8년 전 | 2566 | ||
| 872 | HTML | 8년 전 | 2614 | ||
| 871 | HTML | 8년 전 | 2925 | ||
| 870 | HTML | 8년 전 | 2198 | ||
| 869 | HTML | 8년 전 | 2634 | ||
| 868 | HTML | 8년 전 | 2153 | ||
| 867 | HTML | 8년 전 | 1927 | ||
| 866 | HTML | 8년 전 | 1662 | ||
| 865 | HTML | 8년 전 | 1919 | ||
| 864 | HTML | 8년 전 | 2052 | ||
| 863 | HTML | 8년 전 | 1349 | ||
| 862 | HTML | 8년 전 | 1646 | ||
| 861 | HTML | 8년 전 | 1611 | ||
| 860 | HTML | 8년 전 | 1879 | ||
| 859 | HTML | 8년 전 | 1536 | ||
| 858 | HTML | 8년 전 | 1829 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기