페이지네이션에 스타일 적용하니까 이제 좀 볼만하군..
class="table"
후손 선택자 사용자식 선택자모든을 의미함.table th, td{
border: 1px solid black
}.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td{
border: 1px solid black
}border-collapse: collapse;/* 확장 스타일: hover 시 해당 행 강조 */
.table.table-hover > thead > tr:hover,
.table.table-hover > tbody > tr:hover,
.table.table-hover > tfoot > tr:hover {
background-color: #dfe6e9;
}
세로선은 하나의 태그로 지정할 수 없으므로 프로그래밍 필요
thead 마지막 줄의 하단 or tbody의 첫번째 줄 상단 중 head와 body 구분을 위해 긋는 줄이므로 전자 방식으로 코드 구현
/* 확장 스타일: 가로선만 있는 테이블 */
.table.table-slit {
border: 3px solid gray;
border-left: none;
border-right: none;
}
.table.table-slit > thead {
border-bottom: 2px solid gray;
}
.table.table.table-slit > tfoot{
border-top: 2px solid gray;
}
이미지에는 border가 원래 없음. 테두리 설정 시, inner storke가 적용되어 이미지 사이즈가 줄어듦
/* 투명 색상 적용 방법 2가지 */
border-left-color: rgba(0,0,0,0);
border-right-color: transparent;.image {
border: 1px solid transparent;
}
.image.image-hover:hover {
border-color: blue;
}
투명도를 주는 방법과 퍼져보이게 하는 방법 등 다양한 방법이 있음
opacity 속성: 0~1까지 설정 가능, 불투명도 조절 옵션
.image.image-blur {
opacity: 0.4;
}
.image.image-blur:hover {
opacity: 1;
}
<li> 태그 사용
inline-block최소 폭을 주고 글자 크기에 비례해 커지도록 설정


li에 a태그 추가하면 디자인이 다 사라짐
inline -> block으로 바꾸고, width:100%로 지정
-> 글자에서 숫자 테두리로 클릭 영역이 늘어남
ul.pagination > li > a {
display: block;
width: 100%;
color: inherit; /* 디자인도 상속, 재정의 가능 */
text-decoration: none;
}