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

예
.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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1097 | CSS | 8년 전 | 2189 | ||
| 1096 | CSS | 8년 전 | 2108 | ||
| 1095 | CSS | 8년 전 | 3598 | ||
| 1094 | CSS | 8년 전 | 2284 | ||
| 1093 | CSS | 8년 전 | 1507 | ||
| 1092 | CSS | 8년 전 | 1795 | ||
| 1091 | CSS | 8년 전 | 1959 | ||
| 1090 | CSS | 8년 전 | 1923 | ||
| 1089 | HTML | 8년 전 | 4422 | ||
| 1088 | CSS | 8년 전 | 1481 | ||
| 1087 | CSS | 8년 전 | 1609 | ||
| 1086 | CSS | 8년 전 | 1516 | ||
| 1085 | CSS | 8년 전 | 1538 | ||
| 1084 | CSS | 8년 전 | 1255 | ||
| 1083 | CSS | 8년 전 | 1065 | ||
| 1082 | CSS | 8년 전 | 2162 | ||
| 1081 | CSS | 8년 전 | 1964 | ||
| 1080 | CSS | 8년 전 | 1924 | ||
| 1079 | CSS | 8년 전 | 1973 | ||
| 1078 | CSS | 8년 전 | 1667 | ||
| 1077 | CSS | 8년 전 | 1692 | ||
| 1076 | CSS | 8년 전 | 2033 | ||
| 1075 | CSS | 8년 전 | 1887 | ||
| 1074 | CSS | 8년 전 | 1700 | ||
| 1073 | CSS | 8년 전 | 1547 | ||
| 1072 | CSS | 8년 전 | 1631 | ||
| 1071 | CSS | 8년 전 | 2029 | ||
| 1070 | CSS | 8년 전 | 1611 | ||
| 1069 | CSS | 8년 전 | 1848 | ||
| 1068 | CSS | 8년 전 | 1644 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기